making things more pythonic

modularized helper functions like Logger and data type parse. Made
command line ready via ogp_mdt. Almost ready for the three formats