functions = inspect.getmembers(modinput, inspect.isfunction)
for f in functions:
    camel_name = re.sub('_.', lambda x: x.group()[1].upper(), f.__name__)
setattr(modadd, camel_name, f)
Renaming of functions with preservation of backward compatibility