Update NGS.py

Port to Python 3: Correct syntax for print and return. No cases of xrange, input, sort, sorted, next or iteritems were found.