This script is created by average security guy.You can download it from here.
What it does?
This script first find live target from given range of i.p. Then it will scan for open port of live target using nmap sync scan.
Use of script
chmod +x script_name.py
python script_name.py ip_range