def place_of_performance_values(data, obj):
    ' Get values from the placeOfPerformance level of the xml '
    value_map = {'placeOfPerformanceCongressionalDistrict': 'place_of_performance_congr', 'placeOfPerformanceZIPCode': 'place_of_performance_zip4a'}
    for (key, value) in value_map.items():
        try:
            obj[value] = extract_text(data[key])
        except (KeyError, TypeError):
            obj[value] = None
    try:
        obj['place_of_perform_city_name'] = extract_text(data['placeOfPerformanceZIPCode']['@city'])
    except (KeyError, TypeError):
        obj['place_of_perform_city_name'] = None
    try:
        obj['place_of_perform_county_na'] = extract_text(data['placeOfPerformanceZIPCode']['@county'])
    except (KeyError, TypeError):
        obj['place_of_perform_county_na'] = None
    value_map = {'stateCode': 'place_of_performance_state', 'countryCode': 'place_of_perform_country_c'}
    for (key, value) in value_map.items():
        try:
            obj[value] = extract_text(data['principalPlaceOfPerformance'][key])
        except (KeyError, TypeError):
            obj[value] = None
    value_map = {'countryCode': 'place_of_perf_country_desc', 'stateCode': 'place_of_perfor_state_desc'}
    for (key, value) in value_map.items():
        try:
            obj[value] = extract_text(data['principalPlaceOfPerformance'][key]['@name'])
        except (KeyError, TypeError):
            obj[value] = None
    return obj
Get values from the placeOfPerformance level of the xml
def place_of_performance_values(data, obj):
    '  '
    value_map = {'placeOfPerformanceCongressionalDistrict': 'place_of_performance_congr', 'placeOfPerformanceZIPCode': 'place_of_performance_zip4a'}
    for (key, value) in value_map.items():
        try:
            obj[value] = extract_text(data[key])
        except (KeyError, TypeError):
            obj[value] = None
    try:
        obj['place_of_perform_city_name'] = extract_text(data['placeOfPerformanceZIPCode']['@city'])
    except (KeyError, TypeError):
        obj['place_of_perform_city_name'] = None
    try:
        obj['place_of_perform_county_na'] = extract_text(data['placeOfPerformanceZIPCode']['@county'])
    except (KeyError, TypeError):
        obj['place_of_perform_county_na'] = None
    value_map = {'stateCode': 'place_of_performance_state', 'countryCode': 'place_of_perform_country_c'}
    for (key, value) in value_map.items():
        try:
            obj[value] = extract_text(data['principalPlaceOfPerformance'][key])
        except (KeyError, TypeError):
            obj[value] = None
    value_map = {'countryCode': 'place_of_perf_country_desc', 'stateCode': 'place_of_perfor_state_desc'}
    for (key, value) in value_map.items():
        try:
            obj[value] = extract_text(data['principalPlaceOfPerformance'][key]['@name'])
        except (KeyError, TypeError):
            obj[value] = None
    return obj