Changed instances of PyString_Check to PyBytes_Check