updated optparse to argparse, pep8