Python script to generate rsync scripts