I am writting Python code and want to import function from another Python file. The problem is that in both of these files I open serial connection.
main.py: