use argparse and make threads configureable on commandline