I am sorry for the delay. I will try to start reviewing this now. For starters, why are there so many edits in this file unrelated to your code? Worse, most of them are against PEP8.