fix flake8 in test rpc consumer