nmrfn Python 3 port; rd str.translate to strip fix

Oh I should probably keep a Python 2 version for people to use…