It's done. I managed to do the whole thing, even as much as for 150% credit, though it is useful only if I am stuck at the borderline. The mid sem was half a washout, but I think he gives papers like this. Of course, there was no time to optimize anything.
After the grades for this come out, I'll post it here depending on how embarrassing was it. :) Though I hope using Python for it wasn't a problem.