title: Python CGI with API
body: <p>I am quite new to python, I have built some applications in python with CGI and I found cgi is much easier compare to a framework as i have full control on everything.
  Tried to build a web api through below module but it end up with a web page rather than an api.
  Import cgi
  Import cgitb</p>
  
  <p>I would like to create a web api, as I am familiar with cgi i would like to create it (web api) through python cgi,I have been looking for a good documentation but i dint find any. It would be helpful if someone can give me a clue. I really appreciate your help.</p>