code: def perform_master_login(email, password, android_id,
                           service='ac2dm', device_country='us',
                           operatorCountry='us', lang='en', sdk_version=17):
      
  
      data = {
          'accountType': 'HOSTED_OR_GOOGLE',
          'Email':   email,
          'has_permission':  1,
          'add_account': 1,
          'EncryptedPasswd':
              google.signature(email, password, android_key_7_3_29),
          'service': service,
          'source':  'android',
          'androidId':   android_id,
          'device_country':  device_country,
          'operatorCountry': device_country,
          'lang':    lang,
          'sdk_version': sdk_version,
          }
  
      return _perform_auth_request(data)
docs: Perform a master login, which is what Android does when you first add a
      Google account.
  
      Return a dict, eg::
  
          {
              'Auth': '...',
              'Email': 'email@gmail.com',
              'GooglePlusUpgrade': '1',
              'LSID': '...',
              'PicasaUser': 'My Name',
              'RopRevision': '1',
              'RopText': ' ',
              'SID': '...',
              'Token': 'oauth2rt_1/...',
              'firstName': 'My',
              'lastName': 'Name',
              'services': 'hist,mail,googleme,...'
          }