ensure that global contecxt is reset properly and added some variables to template environment
ensure that global contecxt is reset properly and added some variables
to template environment

thasso/pyjip,thasso/pyjip,thasso/pyjip