Python automated test report optimization