pop items from dicts in python way
Merge pull request #41 from homm/master

Minor code style fix