<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def perform_master_login(email, password, android_id, service='ac2dm', device_country='us', operatorCountry='us', lang='en', sdk_version=17):
 """ Perform a master login, which is what Android does when you first add a Google account. Return a dict, eg:: { 'Email': 'email@gmail.com', 'GooglePlusUpgrade': '1', 'PicasaUser': 'My Name', 'RopRevision': '1', 'RopText': ' ', 'firstName': 'My', 'lastName': 'Name', } """


    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)