dict issue for python 3