v.ldm.py minor edits