Replaced instances of PyString_AsString with PyBytes_AsString