title: how to loop through block_blob_service.copy_blob in python
body: <p>I am copying files from an URL to azure blob using for loop, my problem I don't know how to tell to the function to wait till the operation is completed before starting the next one</p>
  
  <p>Currently I am using this workaround</p>
  
  <pre><code>import re
  from azure.storage.blob import BlockBlobService
  block_blob_service = BlockBlobService(account_name='xxxxx',
                                        account_key='xxxxxxxxxx')
  from urllib.request import urlopen
  import time
  container_name ='yyyyyyyyyyy'
  
  
  
  url = "http://nemweb.com.au/Reports/Current/Daily_Reports/"
  result = urlopen(url).read().decode('utf-8')
  
  pattern = re.compile(r'[\w.]*.zip')
  filelist = pattern.findall(result )
  for x in filelist:
        block_blob_service.copy_blob(container_name,x,url+x)
        time.sleep(60)
  </code></pre>