I have bunch of python script files that i've created, and running them one by one. how can call these script files and run methods one by one from a different script file. I need little help as method in each file is named main() and i'm not sure how to import and call this method by the same name.
file1.py
import sys
def main():
#do something
if __name__ == '__main__':
main()
file2.py
import sys
def main():
#do something else
if __name__ == '__main__':
main()