Reorder imports; initLogging in debug cli
uncomment _debug calls
Fix remaining py3k/py2 compatibility issues
More helpful error in reserialization edge case
Fix off-by one in int serialization check