refactor class accessors for PythonString to correct name