'Initialize the class.'

def __init__(self, host, port, username, password, phonebook_id=0, prefixes=None):

    self.host = host
    self.username = username
    self.password = password
    self.port = port
    self.phonebook_id = phonebook_id
    self.phonebook_dict = None
    self.number_dict = None
    self.prefixes = (prefixes or [])
    import fritzconnection as fc
    self.fph = fc.FritzPhonebook(address=self.host, user=self.username, password=self.password)
    if (self.phonebook_id not in self.fph.list_phonebooks):
        raise ValueError('Phonebook    with    this    ID    not    found.')
    self.update_phonebook()
