fixed 500 error when rendering comment
default template_dirs must be a list, not tuple
removed some old import code for python 2.5