start to write the mdwriter.py