You could not possibly expect that we will examine 556 lines of code to identify your problem.
Please, create minimal, complete and reproducible example that demonstrate your problem, then paste it here in python tags.
For start there is bunch of identical functions, that should be refactored
Please, create minimal, complete and reproducible example that demonstrate your problem, then paste it here in python tags.
For start there is bunch of identical functions, that should be refactored
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs