Prune, organize imports
setup.py: reformat, remove commented-out code
Use new-style classes
PEP 8: Compare against None with identity, not equality
Minor reformatting
Add some TODO/etc. comments

Comments marked with my initials are from PyCharm noticing undefined
variables.