Fix compatibility with Python 3.x Small code cleanup.
Fix compatibility with Python 3.x Small code cleanup.

cloudant/couchdb-documentation,andywenk/couchdb-documentation,robertkowalski/couchdb-documentation,micah/couchdb-documentation,kxepal/couchdb-documentation,KimStebel/couchdb-documentation,robertkowalski/couchdb-documentation,cloudant/couchdb-documentation,KimStebel/couchdb-documentation,KimStebel/couchdb-documentation,micah/couchdb-documentation,micah/couchdb-documentation,robertkowalski/couch-doc-test,kxepal/couchdb-documentation,robertkowalski/couch-doc-test,robertkowalski/couchdb-documentation,kxepal/couchdb-documentation,andywenk/couchdb-documentation,robertkowalski/couch-doc-test,andywenk/couchdb-documentation