gdata translated to Python 3