RF: wrap map call with list
RF: wrap zip with list for indexing
RF: get keys into list before dict iteration

to avoid altering dict during iteration over keys, and therefore a
Python 3 error.