add getopt example for Python