Fix formatting of docs.
Fix tests on python3.