Fix a TypeError on Python 3.
Some tweaks to docs.