add getopt python snippet