I have multiple python files, each with different classes and methods in it. I want to execute all those files with a main function I have separately outside all of them.
use them as modules and import them into your script containing main.
import one import two import three if __name__ == '__main__': one.foo() two.bar() three.baz()