Nicer way of method chaining in Python?
<p>So I have a really long chain of methods, something similar to:</p>

<pre><code>return self.append_command("fbghasjfa").append_command(input_file_part).append_command(output_video_codec_part).append_command(output_resolution_part).append_command(output_video_bitrate_part).append_command(strict_part).append_command(output_audio_codec_part).append_command(output_number_of_audio_channels_part).append_command(output_audio_bitrate_part).append_command(output_file_part).__finalized
</code></pre>

<p>It looks quite ugly. Is there some way to put each method on a separate line? Like:</p>

<pre><code>return self.append_command("ffasfgas")
.append_command("fvasgvsd")
.append_command("hsdhsdhsd")
#etc
</code></pre>
