output file in python; try test entire image