Running code through the pylint linting tool identifies some things to be fixed... "Your code has been rated at -6.17/10"