Scapy (https://scapy.net) is a powerful Python-based interactive packet crafting program. Outside of some expensive commercial programs, very few tools can do what Scapy can do, to my knowledge. It is one of my favorite tools in Python.
The main advantage of Scapy is that it allows you to craft your own packet from the very basic level. In the words of Scapy's creator: