One turnaround I've found is to put this in the controller file instead:
def mycontroller():
return make_controller(someargument)()
Which is a little more ugly and, in my opinion, less readable.
So if anyone can make the first version work I'd love that.
--

