title: Running python CGI script on browser generating script code not expected output
body: <p>I am trying to run a small CGI script but it is showing script code on browser not the HTML.
  I am running Apache server and it's configured as per the requirement.</p>
  
  <pre><code>DocumentRoot "/home/user/htdocs"
  &lt;Directory "/home/user/htdocs"&gt;
  
     Options Indexes FollowSymLinks
     Options +ExecCGI
     AddHandler cgi-script .cgi .py
     Order allow,deny
     Allow from all
     AllowOverride None
     Require all granted
  &lt;/Directory&gt;
  
  ScriptAlias /cgi-bin/ /home/user/cgi-bin/
  </code></pre>
  
  <p>I have put the script in cgi-bin directory and given it executable permission( chmod 755)  but it still not working.</p>
  
  <p>What is it which i am missing ?</p>