title: Convert http headers (string) to a python dictionary
body: <p>Is there a standard function that will convert http headers into a python dictionary, and one to convert back?</p>
  
  <p>They would need to support header folding, of course.</p>