title: python Run for loop on two variables and passing the variable as rsync destination
body: <p>The code below runs well to synchronize two directories concurrently when done in bash; However, it is proving difficult to do the same in python.
  I am going to show both attempts and you give me your feedback
  bash</p>
  
  <pre><code>#!/bin/bash
  for dest in /backup1 /backup2 /backup3; do
  rsync -aviS /source $dest
  done
  </code></pre>
  
  <p>In python, i tried this to no avail.I want to do the same as above but in python.</p>
  
  <pre><code>#!/usr/bin/env python3
  
  import os
  def func_sync():
  
  dest1 = '/home/user/test/new_test1/'
  dest2 = '/home/user/test/new_test2/'
  zipped = zip(dest1,dest2)
  sync = os.system("rsync -av '/home/user/Documents/testsync_p/' \(for data in zipped)")
  return sync
  
  func_sync()
  </code></pre>
  
  <p>How can i refine this?</p>