[Twisted-Python] Best way to write a modularized proxy?