fixed tests for python 3.3

the problem was iterkeys() for dict was merged with keys() when
python was upgraded from 2.x to 3.x