I have problem about my code in below, help me please for correct my code
import glob 
import os 
import shutil from zipfile 
import ZipFile from os 
import path from shutil 
import make_archive
def main():
    list_of_files = glob.glob('C:\\Users\\RezaPal\\Desktop\\test compress\\.docx')
    latest_file = max(list_of_files, key=os.path.getctime)
    # Check if file exists
        if path.exists(latest_file):
    # get the path to the file in the current directory
        src = path.realpath(latest_file);
    # rename the original file
        #os.rename("backup_filetest.docx","filetest.docx")
    # now put things into a ZIP archive
        #root_dir,tail = path.split(src)
        #shutil.make_archive("guru99 archive", "zip", root_dir)
    # more fine-grained control over ZIP files
        with ZipFile("backup_filetest.zip","w") as newzip:
        newzip.write("filetest.docx")
            newzip.write("filetest.docx.bak")
if __name__== "__main__":
    main()