cleaned up nmrpy.py