Fixed Py_None to NULL.