Replace optparse with argparse

This PR Fix #240.