I have a directory that stores all the .py files.
bin/ main.py user.py # where class User resides dir.py # where class Dir resides
In your main.py:
main.py
from user import Class
where Class is the name of the class you want to import.
Class
If you want to call a method of Class, you can call it using:
Class.method
Note that there should be an empty __init__.py file in the same directory.
__init__.py