replaced optparse with argparse

issue #29