Start adding tests for client session
Fix varint tests on py2