replacement iterkeys() into keys() for python3 Compability. +comments