Change deprecated optparse by argparse