Changed iterkeys() to keys() to make the code python3 compatible. The me...

...thod keys() exists in both python 2 and 3 but keysiter() does not exist in python 3 since keys() by defaults returns an iterator.