Made initial revisions/fixes in `ntor.py`.