title: Get sum of specific list elements
body: <p>At my python application I want to get the sum of segment_upload_list but only for objects that are stored locally, so basically every entry starting with &quot;/tmp/VODProcessing/&quot;.
  This is how my full list might look like:</p>
  <pre><code>[['/tmp/VODProcessing/output/1 Se Pone Mas/master.m3u8', &quot;Music/D'can/Se Pone Mas/1 Se Pone Mas/master.m3u8&quot;], ['/tmp/VODProcessing/output/1 Se Pone Mas/a-flac/f-0007.m4s', &quot;Music/D'can/Se Pone Mas/1 Se Pone Mas/a-flac/f-0007.m4s&quot;], ['/tmp/VODProcessing/output/1 Se Pone Mas/a-flac/f-0022.m4s', &quot;Music/D'can/Se Pone Mas/1 Se Pone Mas/a-flac/f-0022.m4s&quot;], ['/tmp/VODProcessing/output/1 Se Pone Mas/a-flac/f-0030.m4s', &quot;Music/D'can/Se Pone Mas/1 Se Pone Mas/a-flac/f-0030.m4s&quot;], ['/tmp/VODProcessing/output/1 Se Pone Mas/a-flac/f-0001.m4s', &quot;Music/D'can/Se Pone Mas/1 Se Pone Mas/a-flac/f-0001.m4s&quot;]]
  </code></pre>
  <p>I wanted to get the sum like this:</p>
  <pre><code>totalsize = sum([os.stat(f).st_size for f in segment_upload_list[0]])
  </code></pre>
  <p>but <code>[0]</code> does not really make much sense here. How can I sum all local paths here?</p>
  <p>Thanks in advance</p>