Create  writedms.py