Oh, and while I'm here, turns out this is already done for me by
Twisted, and they didn't mention it anywhere!