Replace "dir" with "dirname" in util.py in qa/rpc-tests/ because "dir" is the name of a function in python.
This is a minor change to bitrpc.py to conform with the formatting of the other python source code in the repo.