Revert "bugfix: Keep registered types until after Py_Finalize(). Fix #4459 (#4486)" (#4501)

This reverts commit b2c1978caaa6627095e3326f7ecba84b43037869.

See #4500 for background.
1 file changed