title: How can I change a user agent string programmatically?
body: <p>I want to write a program that changes the HTTP headers in my requests that are sent by my web-browser. I believe it can be done with a proxy server. So, I'd like to write a proxy server. </p>
  
  <p>How can I do this in Python?</p>