'Translate a personID 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_imdbPersonID(self, personID):

    try:
        person = Name.get(personID)
    except NotFoundError:
        return None
    imdbID = person.imdbID
    if (imdbID is not None):
        return ('%07d' % imdbID)
    n_dict = {'name': person.name, 'imdbIndex': person.imdbIndex}
    namline = build_name(n_dict, canonical=False)
    imdbID = self.name2imdbID(namline)
    if ((imdbID is not None) and (not isinstance(imdbID, list))):
        try:
            person.imdbID = int(imdbID)
        except:
            pass
    return imdbID
