fixes clobbering for laptop-suspend script
converts nmap script to python