Use Werkzeug's Locals for safely extending Teleport.