Thanks. That is really helpful.
So it is likely that the error came from the module imports in main.py? But why does it work now? Since I rewrote the functions everything behaves like expected and I have not touched the imports in main.py.
Thanks. That is really helpful.