gdata port to Python 3