def un_camel_case(s):
 return re.sub('(?<=\\w)([A-Z])', ' \\1', s)

def un_camel_case ( s ) : return re . sub ( '(?<=\\w)([A-Z])' , ' \\1' , s )
inserts spaces before the capital letters in a camel case string .