python I/O for eigenstrat/ancestrymap format