The Python window allows you to execute arbitrary Python code. This may be helpful for executing short scripts, as well as more intensive programming such as writing or debugging new widgets. More information about programming TUI may be found here.
The Python window is brought up by selecting Python from the TUI Menu. The entities are as follows: