Take care, python3's zipfile only supports encrypted zip files that use CRC-32 based encryption This seems to be the default for the "zip" program on linux, but this doesn't work for AES encryption, or for many Windows based zip solutions See https://github.com/python/cpython/blob/3.6/Lib/zipfile.py for more details
from zipfile import ZipFile
zip_file = 'test.zip'
password = 'password'
with ZipFile(zip_file) as zf:
zf.extractall(pwd=bytes(password,'utf-8'))
The variable zip_file is missing an equal sign vs. a dash.