removed deprecated optparse, argparse used instead

I substituted the OptionParser with ArgParser