Apply recent Twisted best practices to network

So I’ve fixed up the code a bit to reflect more of the current Twisted best practices. It’s not perfect but maybe you find it useful.