Just do simple things to import the .py file from a different folder.
Let's say you have a directory like:
lib/abc.py
Then just keep aan empty file in lib folder as named
__init__.py
And then use
from lib.abc import <Your Module name>
Keep the __init__.py
file in every folder of the hierarchy of the import module.