Feature/tidy templating - make some genshi helper functions available from within the python app