Hi,
I had a "too many open files" error (line 150 in template.py, _compile_from_file module). I patched template.py and problem seems to be solved I give you the patch (it seems that files are not closed and number of opened files exploses when heavy use of Mako)