Fix bug in python string method wrapper

- this was just a typo from before