loader = importlib.machinery.SourceFileLoader('report',
    '/full/path/report/other_py_file.py')
handle = loader.load_module('report')
handle.mainFunction(parameter)
How to import .py file from another directory?