libnmap is a python library to run nmap scans, parse and diff scan results. It's wonderful.