Make solr4 templates compatible with python versions <3.
Merge pull request #14 from isotoma/lowpythonfix

Make solr4 templates compatible with python version 2.6.