fix importlib test failure when bytecode writing is disabled (closes #20796)

Patch by Berker Peksag.
Issue #20791: copy.copy() now doesn't make a copy when the input is a bytes object.  Initial patch by Peter Otten.
Issue #20567: Delete class attribute gui widgets in idle tests.
Code patch by Serhiy Storchaka