There is no need to monkeypatch inet_aton
http://docs.python.org/2/library/socket.html#socket.inet_aton

It's a simple conversion function. Also, if you decide to monkeypatch it, it should be with something that does something similar to the original one, not with a function that does something completely different.