more twisted.web compatibility fixes