Well, it's raw sockets :p They have to work pretty much the same regardless of language, so they can't be any simpler in python than in C.
lmao i used c beforehand but didnt do any sockets but ig that makes sense