add command-line option parsing to python