code refactor
added argparse dependency for python2.6 or lower