<filename>model/contact.py
from sys import maxsize


class Contact:

    def __init__(self, id=None, first_name=None, last_name=None, home_phone=None,
                 mobile_phone=None, work_phone=None, secondary_phone=None, all_phones_from_homepage=None,
                 all_emails_from_homepage=None, address=None, email=None, email2=None, email3=None):
        self.id = id
        self.first_name = first_name
        self.last_name = last_name
        self.home_phone = home_phone
        self.mobile_phone = mobile_phone
        self.work_phone = work_phone
        self.secondary_phone = secondary_phone
        self.all_phones_from_homepage = all_phones_from_homepage
        self.all_emails_from_homepage = all_emails_from_homepage
        self.address = address
        self.email = email
        self.email2 = email2
        self.email3 = email3

    def __repr__(self):
        return "%s:%s:%s" % (self.id, self.first_name, self.last_name)

    def id_or_max(self):
        if self.id:
            return int(self.id)
        else:
            return maxsize

    def __eq__(self, other):
        return (self.id is None or other.id is None or self.id == other.id)\
               and self.last_name == other.last_name and self.first_name == other.first_name

<filename>model/contact.py
from sys import maxsize


class Contact:

    def __init__(self, id=None, first_name=None, last_name=None, home_phone=None,
                 mobile_phone=None, work_phone=None, secondary_phone=None, all_phones_from_homepage=None,
                 all_emails_from_homepage=None, address=None, email=None, email2=None, email3=None):
        self.id = id
        self.first_name = first_name
        self.last_name = last_name
        self.home_phone = home_phone
        self.mobile_phone = mobile_phone
        self.work_phone = work_phone
        self.secondary_phone = secondary_phone
        self.all_phones_from_homepage = all_phones_from_homepage
        self.all_emails_from_homepage = all_emails_from_homepage
        self.address = address
        self.email = email
        self.email2 = email2
        self.email3 = email3

    def __repr__(self):
        return "%s:%s:%s" % (self.id, self.first_name, self.last_name)

    def id_or_max(self):
        if self.id:
            return int(self.id)
        else:
            return maxsize

    def __eq__(self, other):
        return (self.id is None or other.id is None or self.id == other.id)\
               and self.last_name == other.last_name and self.first_name == other.first_name
