the files plinkcc2txt.py and intersnp2txt.py parse the output the of PLINK and INTERSNP with SNPs pairs. The files inside the tmp-files are to create and figure out the problem with the file .h5.

A brief step-by-step to create the json file from openSNP. 
run the fellow files:

1ª - parse_files_openSNP.py 
2ª - map_and_ped.py
3ª - plink with map and ped files that you created
4ª - plinkcc2txt.py with the .cc with information about the SNPs pairs
5ª - run plink2hdf5.py to create the h5 file
6ª - run the new gss2graph.py with the small implementation to create the json file from openSNP