def transmute_projects (project_infos, tasks):
    logger.debug ('transmuting projects')
    projects = {}
    for project in tasks.values():        
        if project.ofattribs['projectInfo'] != None:
            logger.debug ('transmuting: %s %s', project.id, project.name)
            projects[project.ofattribs['persistentIdentifier']] = project
            project_info = project_infos[project.ofattribs['projectInfo']]
            project.__class__ = OFProject
            project.__init__()
            project_info.project = project
            project.type = PROJECT
            project.project_info = project_info
            project.status = project_info.status
    return projects
Some tasks are actually projects, convert them
dataset/ETHPy150Open psidnell/ofexport/src/main/python/omnifocus.py/transmute_projects