title: Convert time from UTC to GMT with Python
body: <p>I'm writting a python app that convert YML files to static HTML pages for my blog (static site generator). I want to add an RSS feed. On a some place I read that the publication date must be:</p>
  
  <pre><code>&lt;pubDate&gt;Wed, 05 Jul 2017 18:38:23 GMT&lt;/pubDate&gt;
  </code></pre>
  
  <p>But I have:</p>
  
  <pre><code>&lt;pubDate&gt;2017-07-05T18:38:23+00:00&lt;/pubDate&gt;
  </code></pre>
  
  <p>The <code>datetime</code> API from Python is really cumbersome about these. How to convert the string <code>2017-07-05T18:38:23+00:00</code> to GMT?</p>
  
  <p>Thanks in avanced.</p>