fixing python test code to use the results class.