Maybe another suggestion would be executing (Python) programs in the main interface instead of executing them in the terminal.