python3 compatibility, doc updates.