python dictionary update return value