'Returns a list of dicts.
Works like get_items but also accepts criteria as a dict to search on.
Example:  { "name" : "*.example.org" }
Wildcards work as described by \'pydoc fnmatch\'.'

def find_items(self, what, criteria=None, sort_field=None, expand=True):

    self._log(('find_items(%s);    criteria(%s);    sort(%s)' % (what, criteria, sort_field)))
    items = self.api.find_items(what, criteria=criteria)
    items = self.__sort(items, sort_field)
    if (not expand):
        items = [x.name for x in items]
    else:
        items = [x.to_dict() for x in items]
    return self.xmlrpc_hacks(items)
