def underscore_to_camelcase(value):

    def camelcase():
        yield str.lower
while True:
    yield str.capitalize
c = camelcase()
return ''.join(c.next()(x) if x else '_' for x in value.split('_'))
How can I simplify this conversion from underscore to camelcase in Python?