python get default value if key not in dict