Revert changes in py_string.py