update write-snps.py