title: HOWTO: Write Python API wrapper?
body: <p>I'd like to write a python library to wrap a REST-style API offered by a particular Web service. Does anyone know of any good learning resources for such work, preferably aimed at intermediate Python programmers?</p>
  
  <p>I'd like a good article on the subject, but I'd settle for nice, clear code examples.</p>
  
  <p><strong>CLARIFICATION:</strong> What I'm looking to do is write a Python client to interact with a Web service -- something to construct HTTP requests and parse XML/JSON responses, all wrapped up in Python objects.</p>