Refactored the create.py and grade.py into a simple API