This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.