This commit replaces the roll-your-own argument parsing in rpc_tests.py with Python's standard library argparse.