adding helpful error message when calling r.row in the python driver