First you disable your network card's automatic checksumming:
sudo ethtool -K eth1 tx off
Then send your packet, using a SOCK_RAW socket:
#!/usr/bin/env python
from socket import socket, AF_PACKET, SOCK_RAW
s = socket(AF_PACKET, SOCK_RAW)
s.bind(("eth1", 0))
# We're putting toge...