3x os.chmod ->  1x os.umask
One-liner.
Shrinking the size of grade_homework by moving things (part 1 of many).