If you are using imap_tools, why you do not using its search builder?
mailbox.fetch(AND(seen=False, subject='important', from_="[email protected]"))
print(AND(seen=False, subject='important', from_="[email protected]"))
# (FROM "[email protected]" UNSEEN SUBJECT "important")
Regards, lib author.