The question-and-answer system seems similar to node's inquirer module:
https://github.com/SBoudrias/Inquirer.js
There's a re-implementation of that same idea for python:
https://github.com/magmax/python-inquirer
I've been building something recently that uses python-inquirer, although it isn't a perfect fit for my use-case. I'd be interested to know if there are any more similar libraries for python.