import win32com.client from optparse import OptionParser #Define and parse all the command line options parser=OptionParser(usage='%prog