Try to future-proof against future pylons-less tg.

Ran into this in my latest venv.