I agree with the sentiment but running nginx+Python on an embedded MIPS device? That's getting pretty ridiculous! Better to go the other way (lower-level), I think.
Even if you do the actual scripts in CGI, alone using nginx for the HTTP part would kill off many of the security problems arising from buggy HTTP header/auth parsing.