Fix pep8 warning (.has_key() is deprecated).
Merge pull request #54 from gmist/fix_w601

Fix pep8 warning w601