Here is the code of python.
import re
fin = open('snp.txt','r').readlines()
l = [ re.match('.*(\(.*?\))',line).group(1) for line in fin]
l = [ '%d %f\n'%eval(i) for i in l]
with open('o.txt','w') as fout:
fout.writelines(l)
fout.close()
If you have blank lines in contents of snp.txt, just filter them out.