(check_version, check_version_gtk): Handle the reference counts of the return value and errors in PyArg_ParseTuple correctly.