Please follow the style conventions here:

    StudentModuleFactory.create(
        course_id=self.course_id,
        module_state_key=self.problem_location,
        student=self.student_on_post_assessment,
        grade=0,
        max_grade=1,
        state=STATE_POST_ASSESSMENT
    )