some minor linting

Mostly line lengths. Also, fixed "old-style classes" because the code is targeting Python 2, not 3.