Migrated half project.py file