If the OP was able to run his homework files just by monkeypatching a few classes, I think that shows requiring Matlab for the assignment was massive overkill. Unless you're using the toolboxes (which they weren't), what does Matlab give you that you can't get in free language?
I'm in engineering and only at the very very end on some "advanced" Control Systems classes did we even touch the toolboxes.
Everything else, from Numerical Methods to Vibrations to lab report creation would've been handled by IPython and pylab much better. I envy upcoming generations tbh.
For whatever language(s) you choose to base your course curricula around, you have to have a progression from "hello world" type exercises, to moderately complicated, and on to "go and make a thing"