code: def inet_ntop(address_family, packed_ip):
      
      global __inet_ntop
      if __inet_ntop is None:
          if hasattr(socket, 'inet_ntop'):
              __inet_ntop = socket.inet_ntop
          else:
              from ospd import win_socket
              __inet_ntop = win_socket.inet_ntop
  
      return __inet_ntop(address_family, packed_ip)
docs: A platform independent version of inet_ntop