import re


def normalize_mac(mac):
    """
    Given a Mac, strip periods, colons, or dashes form string and return result in lower case
    This works but for a more production ready script look at the netaddr module
    :param mac:
    :return: lowercase mac without any special characters
    """
    return re.sub(r'(\.|:|\-)', '', mac).lower()