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