import runpy result = runpy.run_module("helloworld", run_name="__main__", alter_sys=True)