Apply recent Twisted best practices to network