python dictionary update duplicate keys