Troubleshooting pymongo on Openshift

I have recently setup a little project in RedHat openshift using python3 and mongodb. During my code development i came across a few issues and I struggled to troubleshoot them using the default openshift tools from the command line.

I added the following lines to my script to make it easier to debug, once I had these in place I could easily debug the issues and fix my code.

  app.config['PROPAGATE_EXCEPTIONS'] = True