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 STUI may be found here.
The Python window is brought up by selecting Python from the STUI Menu. The entities are as follows: