It is possible to run a Python script in several ways
1- From the lower entry, can invoke Tcl code writing -np-
followed some space and then some tcl code an press <Return>
In particular there are some predefined Tcl procs that run python code, like
GiD_Python_Exec, GiD_Python_Eval, GiD_Python_Call