title: Python CGI Showing 500 internal server error
body: <p>I'm a python developer, but when i'm putting my file inside a cgi-bin directory
  and running it through my browser its showing 500 internal server error.</p>
  
  <pre><code>#!/usr/bin/env python
  # -*- coding: UTF-8 -*-
  
  # enable debugging
  import cgitb
  cgitb.enable()
  
  print "Content-Type: text/plain;charset=utf-8"
  print
  
  print "Hello World!"
  </code></pre>
  
  <p>This is my test.py.
  Filelocation : <a href="http://mywebsite.com/cgi-bin/test.py" rel="nofollow">http://mywebsite.com/cgi-bin/test.py</a></p>
  
  <p>.htaccess file :</p>
  
  <pre><code> RewriteEngine on
   Options +ExecCGI AddHandler cgi-script cgi py
   Options +ExecCGI SetHandler cgi-script
  </code></pre>
  
  <p>Please give some suggestion!</p>