modify writing format in recorde.py