Twisted Code samples from the Oreilly book