compat. for python 3 and moved data to json files.