switching to twisted to allow persistent TCP connection.