added Py_INCREF(Py_None) that was missing