Python: Fix ImportError in imp.py under Python 3.14
#20630
+13
−2
Merged