Capture Screen Using Python Assert Function