getopt instead of optparse