title: how to map a dictionary values to another dictionary in a Pythonic way?
body: <p>I have the following dictionary:</p>
  <pre><code>source_dictionary = {
     &quot;id&quot;: &quot;1&quot;,
     &quot;duration&quot;: &quot;3&quot;,
     &quot;start_time&quot;: &quot;2020-08-31T12:22:11.8000000-0400&quot;,
     &quot;end_time&quot;: &quot;2020-08-31T12:24:36.8000000-0400&quot;,
     &quot;customer_id&quot;: &quot;123&quot;,
     &quot;customer_extension&quot;: &quot;123455&quot;,
     &quot;customer_fullname&quot;: &quot;John Doe&quot;,
     &quot;call_reason&quot;: &quot;complaint&quot;,
     &quot;region&quot;: &quot;NY&quot;,
     &quot;company_number&quot;: &quot;456&quot;,
     &quot;language&quot;: &quot;English&quot;,
     &quot;company_phone_number&quot;: &quot;999999&quot;,
     &quot;customer_phone_number&quot;: &quot;11111&quot;,
     &quot;call_number&quot;: &quot;20&quot;,
     &quot;organization_name&quot;: &quot;AAA&quot;,
     &quot;company_name&quot;: &quot;BBB&quot;
     } 
  </code></pre>
  <p>I want to create a new dictionary that renames a few keys, converts the value to integer for one of the key and apply a function to <code>start_time</code> and <code>end_time</code> and the rest of the key/value pairs remain the same.</p>
  <p>The resulting dictionary is:</p>
  <pre><code>   {
     &quot;duration&quot;: 3,
     &quot;start_datetime&quot;: &quot;2020-08-31T16:22:11.800000+00:00&quot;,
     &quot;end_datetime&quot;: &quot;2020-08-31T16:24:36.800000+00:00&quot;,
     &quot;customer_id&quot;: &quot;123&quot;,
     &quot;customer_extension&quot;: &quot;123455&quot;,
     &quot;customer_full_name&quot;: &quot;John Doe&quot;,
     &quot;call_reason&quot;: &quot;complaint&quot;,
     &quot;region&quot;: &quot;NY&quot;,
     &quot;company_number&quot;: &quot;456&quot;,
     &quot;language&quot;: &quot;English&quot;,
     &quot;company_phone_number&quot;: &quot;999999&quot;,
     &quot;customer_phone_number&quot;: &quot;11111&quot;,
     &quot;call_number&quot;: &quot;20&quot;,
     &quot;organization_name&quot;: &quot;AAA&quot;,
     &quot;company_name&quot;: &quot;BBB&quot;
     } 
  </code></pre>
  <p>My current code is:</p>
  <pre><code>    def convert_iso_to_utc(date_string):
          yourdate = dateutil.parser.parse(date_string)
          return yourdate.astimezone(timezone.utc).isoformat()
  
      new_dict = {}
  
      new_dict[&quot;duration&quot;] = int(source_dict[&quot;duration&quot;])
      new_dict[&quot;start_datetime&quot;] = convert_iso_to_utc(source_dict[&quot;start_time&quot;])
      new_dict[&quot;end_datetime&quot;] = convert_iso_to_utc(source_dict[&quot;end_time&quot;])
      new_dict[&quot;customer_id&quot;] = source_dict[&quot;customer_id&quot;]
      new_dict[&quot;customer_extension&quot;] = source_dict[&quot;customer_extension&quot;]
      new_dict[&quot;customer_full_name&quot;] = source_dict[&quot;customer_fullname&quot;]
      new_dict[&quot;call_reason&quot;] = source_dict[&quot;call_reason&quot;]
      new_dict[&quot;region&quot;] = source_dict[&quot;region&quot;]
      new_dict[&quot;company_number&quot;] = source_dict[&quot;company_number&quot;]
      new_dict[&quot;distributor_number&quot;] = source_dict[&quot;distributor_number&quot;]
      new_dict[&quot;language&quot;] = source_dict[&quot;language&quot;]
      new_dict[&quot;company_phone_number&quot;] = source_dict[&quot;company_phone_number&quot;]
      new_dict[&quot;call_number&quot;] = source_dict[&quot;call_number&quot;]
      new_dict[&quot;organization_name&quot;] = source_dict[&quot;organization_name&quot;]
      new_dict[&quot;company_name&quot;] = source_dict[&quot;company_name&quot;]
  </code></pre>
  <p>Is there a more pythonic way of doing this?</p>