Cleans up code and pushes pylint score to 10.0