def humanize(text):
    '''Transform code conventions to human readable strings'''
    words = []
    for part in text.split('_'):
        for word in RE_CAMEL.findall(part) or [part]:
            words.append(word.lower())
    words[0] = words[0].title()
    return ' '.join(words)
Transform code conventions to human readable strings