updated dumplevel.py for cmdline args and json