Tweak docs configuration
Python 3 compatibility
Add supported Python versions to classifiers
Minor PEP8 tidying