add python 3 support

README is updated to python 3
same comment goes for all dict's being converted to lists in this PR.