Fixed address translation bug in Socket::accept.
Made Python network protocol implemenation more robust.