IDLE: Cleanup codecontext.py and its test.