def single_download_photos(photos):
    """Use single process to download photos

    :param photos: The photos to be downloaded
    :type photos: list of dicts
    """
    global counter
    counter = len(photos)
    for photo in photos:
        download_photo(photo)
def single_download_photos ( photos ) : global counter counter = len ( photos ) for photo in photos : download_photo ( photo )
Use single process to download photos

    :param photos: The photos to be downloaded
    :type photos: list of dicts