def dots_to_camel_case(dots):
 def return_upper(match):
  return match.groups()[0].upper()
 return str(DOTS.sub(return_upper, dots))

def dots_to_camel_case ( dots ) : def return_upper ( match ) : return match . groups ( ) [ 0 ] . upper ( ) return str ( DOTS . sub ( return_upper , dots ) )
takes a string delimited with periods and returns a camel-case string .