def dict_clean(items):
    result = {}
for key, value in items:
    if value is None:
        value = 'default'
result[key] = value
return result
dict_str = json.dumps(my_dict)
my_dict = json.loads(dict_str, object_pairs_hook=dict_clean)
Заменить None в словаре Python