added hash-of-hash (hoh) and associated tests
simplified use of argparse
more python 3 migration