Fixes to support converting from the deprecated ContextIO2 to the supported Python-ContextIO