Ported to Python and mustache.

Oh, also fixed #1.