def module_path(local_function):
return os.path.abspath(inspect.getsourcefile(local_function))<EOL>
returns the module path without the use of __file__.
    Requires a function defined locally in the module.
    from "http://stackoverflow.com/questions/729583/
    getting-file-path-of-imported-module