For a new dict:
from collections import defaultdict
# None is the default, but you can change this default value
d = defaultdict(lambda: None)
For an existing dict:
from collections import defaultdict
# convert a dictionary to a defaultdict
d = defaultdict(lambda: None,d)