title: СGI python3 403 error
body: <p>I am asking it because I write very simply app but IT DON'T WORK.
  I wrote this command in terminal in the <code>/dir</code>:</p>
  
  <pre><code>python3 -m http.server --cgi  
  </code></pre>
  
  <p>My script is in dir/cgi-bin/hp.py and that code:</p>
  
  <pre><code>#!/usr/bin/env python3
  print"Content-type: text/html"
  print()
  print"&lt;h1&gt;Hello world!&lt;/h1&gt;"
  </code></pre>
  
  <p>This I saw in window of browser:</p>
  
  <blockquote>
    <p>Error response<br>
    Error code: 403<br>
    Message: CGI script is not executable ('/cgi-bin/hp.py').<br>
    Error code explanation: HTTPStatus.FORBIDDEN - Request forbidden --
    authorization will not help."</p>
  </blockquote>
  
  <p>How can I fix it?</p>