How to compile a string of Python code into a module whose functions can be called?,foo()