Python 3 network Programming