Python template

In preparation for GDCR'13, here's a Python template.