Update mdgenerate.py