Create nsmith.py

Nate Smith's rough Python code for rewriting TRPR