Fixed typo, added workaround for changed argparse behavior in python3.