How to plot tweets by location in real time on to a map e.g. leaflet
This repo shows how to use Flask and Mongo with Leaflet
https://github.com/openshift-quickstart/openshift-mongo-flask-example
If you can either write a timer loop in your JS page to do an Ajax request at a regular interval or you will need something like WebSockets on the server and the client