'Translate a companyID in an imdbID.
If not in the database, try an Exact Primary Name search on IMDb;
return None if it\'s unable to get the imdbID.'

def get_imdbCompanyID(self, companyID):

    try:
        company = CompanyName.get(companyID)
    except NotFoundError:
        return None
    imdbID = company.imdbID
    if (imdbID is not None):
        return ('%07d' % imdbID)
    n_dict = {'name': company.name, 'country': company.countryCode}
    namline = build_company_name(n_dict)
    imdbID = self.company2imdbID(namline)
    if ((imdbID is not None) and (not isinstance(imdbID, list))):
        try:
            company.imdbID = int(imdbID)
        except:
            pass
    return imdbID
