Reorder imports in npr.py