I was hacking pylibnet for about two hours (anyway
excellent project!) and here's a little patch for libnet.py file.
wrappers for functions and contants are now declared
dinamicaly, apply function isn't used any more, because it's
going to be deprecated in future. you'll also find some
simple code cleanups.
At the moment i'm unable to test this code, but should work
patch it in that way:
patch < libnet-cleanup.patch