fix CPython version checking for tp_finalize()
enable Py_TPFLAGS_HAVE_FINALIZE flag for extension types that need it
use proper C-API function for generator finalisation
minor C code simplification
revert actual tp_finalize() usages, needs more thought
fix CPython version check for tp_finalize()