Ported the demo app completely into Python. The user now queries through demo app which communicates with the server via restful calls.