use argparse instead of getopt to parse options
deleted import types
docs