[Twisted-Python] better way to do this?