argparse is required
tests modified to work with pyhton 2.6