initial code commit

still tweaking output to json file. Cant find solution yet for the missing compat.py file in simplejson.