Python implementation of classes for network protocols

This way you can easily tweak everything you want.

https://github.com/fortra/impacket/tree/master/impacket