import pprint


def phone_partial_clean(phones = {}):
    """ Takes dictionary of phone numbers to be fixed (as key).
    Removes parenthesis and inserts hyphen (-) in place of blanks
    saving partially cleaned number as value.

    Function is used prior to cleaning and reduces the number of 
    manual corrections needed in the update_phones mapping dictionary.
    """
    
    if not phones:
        phones = {'(512) 246-7941': 'fix_number',
        '+1 (512) 469-7000': 'fix_number',
        '+1 (512) 759-5900': 'fix_number',
        '+1 512 218 5062': 'fix_number',
        '+1 512 218 9888': 'fix_number',
        '+1 512 238 0820': 'fix_number',
        '+1 512 244 3737': 'fix_number',
        '+1 512 248 7000': 'fix_number',
        '+1 512 252 1133': 'fix_number',
        '+1 512 255 7000': 'fix_number',
        '+1 512 255 7530': 'fix_number',
        '+1 512 258 8114': 'fix_number',
        '+1 512 277 6959': 'fix_number',
        '+1 512 310 7600': 'fix_number',
        '+1 512 310 7678': 'fix_number',
        '+1 512 324 4000': 'fix_number',
        '+1 512 341 1000': 'fix_number',
        '+1 512 362 9525': 'fix_number',
        '+1 512 402 7811': 'fix_number',
        '+1 512 528 7000': 'fix_number',
        '+1 512 532 2200': 'fix_number',
        '+1 512 600 0145': 'fix_number',
        '+1 512 637 6890': 'fix_number',
        '+1 512 733 9660': 'fix_number',
        '+1 512 990 5413': 'fix_number',
        '+1 512)351 3179': 'fix_number',
        '+1 512-244-8500': 'fix_number',
        '+1 512-260-5443': 'fix_number',
        '+1 512-260-6363': 'fix_number',
        '+1 512-310-8952': 'fix_number',
        '+1 512-338-8805': 'fix_number',
        '+1 512-341-7387': 'fix_number',
        '+1 512-421-5911': 'fix_number',
        '+1 512-535-5160': 'fix_number',
        '+1 512-535-6317': 'fix_number',
        '+1 512-733-6767': 'fix_number',
        '+1 512-851-8777': 'fix_number',
        '+1 737 757 3100': 'fix_number',
        u'+1-737-484\u20110700': 'fix_number',
        '+1512-413-9671': 'fix_number',
        '+1512-909-2528': 'fix_number',
        '+15123885728': 'fix_number',
        '+15124282300': 'fix_number',
        '+15124648382': 'fix_number',
        '1+512-696-5209': 'fix_number'}
    
    for key in phones:
        phone_update_value = key.replace('(', '').replace(')', '').replace(' ', '-')
        phones[key] = phone_update_value

    pprint.pprint(phones)
    return phones