doc updates and py2/3 compat fix.