has_key does not exist in python3, I should really read my own commit messages