title: alternative to curl functions
body: <p>Im a python beginner, so please sorry for my question.
  I try to write a script in python, acutally the script use linux bash, python and php. This script was not written by me, so it is not easy to understand every point. I would do now everything in python, cause i think this is the better way and it should work then on every system, not only on linux.</p>
  
  <p>I need the following line "translated" to python:</p>
  
  <pre><code>curl -s --cookie-jar "$COOKIE_DIR/$SAVE_COOKIE" -b "$COOKIE_DIR/$LOAD_COOKIE" --data "$QUERY_STRING" "$URL" &gt; "$TEMP_FILE""_bak"
  </code></pre>
  
  <p>I need to save and load the cookies. Also must send a post data. 
  So, how i do this? With "requests" or urllib or mechanize?</p>
  
  <p>Many thx for helping me.</p>