As far as i can tell, the "intended" way is using the Inject fixture to inject T into the template rendering context, which you need to do for each controller which has a template that needs access to T.
But since thats very annoying, i chose the very not ideal workaround of
from py4web.core import HELPERS as TEMPLATE_VARS
which WILL break if you run more than 1 app that tries to do this through a single py4web instance, but since i will never do that it works. (i strongly believe each application should be an isolated python process, perhaps even its own docker container)