`has_key()` is deprecated in Python use `if 'subscription_name' in data_dict` instead