Fix has_key using a lambda for python3