dictionary format

still look into encoding
do this in py3 file