Below is the file 'test-nmap.py' from this revision. You can also download the file.

#!/usr/bin/python

from goatpy import nmapwrapper

if __name__ == '__main__':
	for i in nmapwrapper.nmap("nmap -oX - localhost"):
		print i