Bettse/pre py 33

I'm not sure if you're looking to support pre-3.3 python.  The system I was setting up on had 3.2, and the templates appeared to be the only problems to it running.  here are a couple fixes that worked well for me.