PythonNetworkProgrammingCookbook ch2