Fixing SQL Testing for proper py3 support