rename tool.py to mdgen.py