def _unabbrieviate_direction(abb_dir_str):
    'Convert abbrieviated directions to non-abbrieviated direction.'
    return abb_dir_str.upper().replace(UND, 'Undefined ').replace('N', 'North ').replace('E', 'East ').replace('S', 'South ').replace('W', 'West ').replace(' ,', ',').strip()
Convert abbrieviated directions to non-abbrieviated direction.
def _unabbrieviate_direction(abb_dir_str):
    
    return abb_dir_str.upper().replace(UND, 'Undefined ').replace('N', 'North ').replace('E', 'East ').replace('S', 'South ').replace('W', 'West ').replace(' ,', ',').strip()