Passing Variables To Hazel From Python

Hazel can pass variables to Python that is called by the external shell command using the filename of the PDF.
Is it possible to send anything back to Hazel from the shell command once the Python script is finished?
My current Hazel rule sometimes has problems reading the person's name because the document I scanned was mailed and the document is folded sometimes on that section of the document. I can almost always read an ID field on the document that my python script can use to pull the person's name. I need to send the person's name back to Hazel so it can rename the PDF using the person's name.
Is it possible to send anything back to Hazel from the shell command once the Python script is finished?
My current Hazel rule sometimes has problems reading the person's name because the document I scanned was mailed and the document is folded sometimes on that section of the document. I can almost always read an ID field on the document that my python script can use to pull the person's name. I need to send the person's name back to Hazel so it can rename the PDF using the person's name.