Fix bug in dict.py where %d was expected but %s was passed