I did some more digging and discovered that apparently I have to call PyErr_Print() on my own if an error occurred. I expected Python to do this for me, since I've never had trouble calling just standard functions and having it work there.