return '%s-%s-%s' % (fields[0], fields[2], fields[1])
for key, val in b.items():
    DateK = switch_month_day(key)
if DateK in d:
    pass
Python: updating a large dictionary using another large dictionary