Conforms to conventions

Updated all files so that they conform to Python conventions to the best
of their ability. Most files have received a score of 10 using pylint.