import os, sys
basepath = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
if basepath not in sys.path:
    pass
How to structure a python project with three applications that use common module