code: def get_addressbooks(self, order=None, append_remaining=True):
          
          order = order or []
          abooks = []
          for a in order:
              if a:
                  if a.abook:
                      abooks.append(a.abook)
          if append_remaining:
              for a in self._accounts:
                  if a.abook and a.abook not in abooks:
                      abooks.append(a.abook)
          return abooks
docs: returns list of all defined :class:`AddressBook` objects