Add function to access jinja macros from python

e.g. get_template_module('foo.txt').some_macro()