title: Python: jQuery-like function chaining?
body: <p>I couldn't find anything on this subject on Google, so I think I should ask it here:</p>
  
  <p>Is it possible to chain functions with Python, like jQuery does?</p>
  
  <pre><code>['my', 'list'].foo1(arg1, arg2).foo2(arg1, arg2).foo3(arg1, arg2) #etc...
  </code></pre>
  
  <p>I am losing a lot of space and readability when I write this code:</p>
  
  <pre><code>foo3(foo2(foo1(['my', 'list'], arg1, arg2), arg1, arg2), arg1, arg2) #etc...
  </code></pre>
  
  <p>There seems to exist some illusive library for creating such functions, but I can't seem to see why this has to be so complicated-looking...</p>
  
  <p>Thanks!</p>