Change call to list(dict.keys())

I just thought it looked strange, so I'm proposing this minor edit.
Merge pull request #617 from adamrp/minor_edit

Change call to list(dict.keys())