add wscript support for wifi-sleep.cc example
ToString method to Packet