unroll.py: using mako for templates