'Return a name for a given phone number.'

def get_name(self, number):

    number = re.sub('[^\\d\\+]', '', str(number))
    if (self.number_dict is None):
        return 'unknown'
    try:
        return self.number_dict[number]
    except KeyError:
        pass
    if self.prefixes:
        for prefix in self.prefixes:
            try:
                return self.number_dict[(prefix + number)]
            except KeyError:
                pass
            try:
                return self.number_dict[(prefix + number.lstrip('0'))]
            except KeyError:
                pass
    return 'unknown'
