def get_status_code(status, short=False):
    """Converts status code phrase to a simplified code if it isn't already simplified.
    Examples: 'Registered' => 'R' or 'Web Drop' => 'DROP'
    """
    if short:
        status_codes = {'Registered': 'R', 'Web Registered': 'R',
            '(Add(ed) to Waitlist)': 'WL', 'Web Drop': 'DROP',
            'Web Withdrawn Course': 'W'}
    else:
        status_codes = {'Registered': 'R', 'Web Registered': 'RW',
            '(Add(ed) to Waitlist)': 'LW', 'Web Drop': 'DW',
            'Web Withdrawn Course': 'WW'}
    return status_codes[status] if status in status_codes else status
