'Return a list of Company objects for a query for the given name.
The results argument is the maximum number of results to return.'

def search_company(self, name, results=None):

    if (results is None):
        results = self._results
    try:
        results = int(results)
    except (ValueError, OverflowError):
        results = 20
    if (not isinstance(name, unicode)):
        name = unicode(name, encoding, 'replace')
    res = self._search_company(name, results)
    return [Company.Company(companyID=self._get_real_companyID(pi), data=pd, modFunct=self._defModFunct, accessSystem=self.accessSystem) for (pi, pd) in res][:results]
