title: How do I find mime-type in Python
body: <p>I am trying out some CGI-scripting in Python. If a request come to my python script, how do I find the mime-type of the filetype?</p>
  
  <p>UPDATE: Adding more info 
  Some images for now, adderess/image.jpg. But if I understand mime-type is part of the headers that the web-browsers sends, right? So how do I read these headers?</p>