Automatizando uma entrada para o terminal

Eu tenho um problema que realmente não sei como perguntar. Vou tentar explicar o melhor possível.

Eu tenho que automatizar um processo de instalação usando um script bash. No meio do processo, faço uma chamada para um script Python chamado configure.py. Este script espera terminal de entrada.

Existe alguma maneira de chamar o script passando argumentos de terminal à espera?

Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.11.4 (licensed under the GNU General Public
License) for Python 2.7.9 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes

Muito obrigado.

questionAnswers(3)

yourAnswerToTheQuestion