Evolve transact.py into a proper command line tool.