I have a feeling that the code in this project is really spaghettified. Especially in python. It needs to be fixed