I have a master module master.py and a helper function stored in a folder functions/helper1.py (I have many of these helper functions actually, which is why they are stored in a separate folder).
The helper1.py file looks like this:
def main():
    # Do some stuff
    return stuff
if __name__ == "__main__":
    main()
I need to import the helper function into the master module and I can think of two ways of doing it.
1. master.py:
from functions import helper1
def main():
    # Call helper1.
    vars = helper1.main()
if __name__ == "__main__":
    main()
2. master.py:
from functions.helper1 import main as helper1
def main():
    # Call helper1.
    vars = helper1()
if __name__ == "__main__":
    main()
I'd prefer 1. but I'm wondering if there's a recommended pythonic way of doing this?
