cleaning up formatter

cleaning up mongo_formatter.py working towards a more general parser