'Return a tuple of entity type and entity object
:param imdb_id: string which contains IMDB id
:return: entity type, entity object (person, company, etc.)'

def get_entity_type_and_object(self, imdb_id):

    if imdb_id.startswith(u'nm'):
        person = self.ia.get_person(imdb_id[2:])
        log.info((u'Starting    to    retrieve    items    for    person:    %s' % person))
        return (u'Person', person)
    elif imdb_id.startswith(u'co'):
        company = self.ia.get_company(imdb_id[2:])
        log.info((u'Starting    to    retrieve    items    for    company:    %s' % company))
        return (u'Company', company)
    elif imdb_id.startswith(u'ch'):
        character = self.ia.get_character(imdb_id[2:])
        log.info((u'Starting    to    retrieve    items    for    Character:    %s' % character))
        return (u'Character', character)
