Util for creating row tests in python