parse options for python program.