Python-Twisted implementation