The project works in a form that the main.py run in a Docker container, and the other program, secundario.py it's changing all the time the information of archivo.txt, when you write in the secundario.py the program exit, even the container, writing in respuesta.py in your local machine.
No need of any libraby for python, just need Docker and the image of Python.