Menu: Utilities→Tools→Console Python...
This open a IDLE shell console to use Pyhtonl commands interactively for developer or advanced users.
Note: this console uses the GiD-tcl interpreter, then is possible to use not only Python standard commands, but also GiD added commands like GiD_Info or GiD_Process