excrcise for book Foudations of Python Network Programming