Replace argparse with optparse