Miscellaneous Twisted code that I find I reuse in many projects