title: Python: split method call into multiple lines
body: <p>In JavaScript I can do something like:  </p>
  
  <pre><code>var template = "{a}{b}-{c}{d}";
  var myStuff = template
                  .replace("{a}", a)
                  .replace("{b}", b)
                  .replace("{c}", c)
                  .replace("{d}", d);
  </code></pre>
  
  <p>I would like to do something similar in python, but due to the fact that python uses indentation for blocks of code, I can't simply write:  </p>
  
  <pre><code>myStuff = template
                  .replace("{a}", a)
                  .replace("{b}", b)
                  .replace("{c}", c)
                  .replace("{d}", d)
  </code></pre>
  
  <p>I don't want to have to write this:  </p>
  
  <pre><code>myStuff = template.replace("{a}", a).replace("{b}", b).replace("{c}", c).replace("{d}", d)
  </code></pre>
  
  <p>Or this:</p>
  
  <pre><code>myStuff = template
  myStuff = myStuff.replace("{a}", a)
  myStuff = myStuff.replace("{b}", b)
  myStuff = myStuff.replace("{c}", c)
  myStuff = myStuff.replace("{d}", d)
  </code></pre>
  
  <p>They both look ugly (and I don't like my code ugly!).<br>
  Is there a way to break a method call chain into new lines in python, just like I did in JavaScript?</p>