Code example for getopt with Python