fixed PyString_FromString NULL pointer bug