import outside_code
import functions
for name in getattr(functions, '__all__', (n for n in vars(functions) if 
    not n[0] == '_')):
    setattr(outside_code, name, getattr(functions, name))
Modules and variable scopes