one small final fix to toPythonString, sloppy fix but it works for now