[Twisted-Python] APIs changes for TCP and UDP