You can pass command line options to the python script, just like you can with other command line programs. Depending on which button was pressed, pass different switches to your program.
In your case, it may be simplest just to pass in one value on the command line depending on the button that was pressed and pick this from the sys.argv variable:
import sys
def fooClicked():
# Stuff to do when Foo was clicked
def barClicked():
# Stuff to do when Bar was clicked
button = sys.argv[1]
if button == 'foo':
fooClicked()
elif button == 'bar':
barClicked()
(You could use a dict to look up methods but that may be too advanced, don't know how comfortable you are with Python).
So, if you call this script with python.exe H:\Report_v7.py foo the fooClicked function will be called.
If this is going to grow to more than just two buttons, I'd use the optparse module to define your options and run different code paths depending on the options chosen.
If you upgrade to Python 2.7, then use the new (better) argparse module instead.
codeShell "C:\Python25\python.exe ""H:\Report_v7.py"