def __init__(self, location):
    if os.path.isdir(location):
        for infile in glob.glob(os.path.join(directory, '*.png')):
            pass
Is there any script to convert folder images into one pdf