Use "O", `PyString_CheckEx`, and `PyString_AsStringEx` to ensure this plays nicely with python 2.x's broken unicode model.