Fixed a Py_None ref leak