with zipfile.ZipFile(my_zip) as zip_file:
    for member in zip_file.namelist():
        filename = os.path.basename(member)
if not filename:
    pass
Extract files from zip without keeping the structure using python ZipFile?