OK I have managed to get the name of the file (after checking out to the /tmp directory) to be attached in the commit email in a variable called $ATTACHFILE in my post-commit hook.
But here is another issue that I am now running into: How do I pass the value of the variable $ATTACHFILE to the mailer.py python script without wrecking the order of the parameters it expects? Thanks