Corrected python errors in project loader