Pynmap is a simple library to run Nmap scans and parse results.