Python version of netcat.