1
res = re.sub(r'_[a-z]', lambda x: x.group(0)[1].upper(), 'SUBMIT_LEAD_FORM'.lower().capitalize())