HH-37783 move handler.py methods around
HH-37783 add before, after and template postprocessors