Improve python test script to test result file with tolerance on float values.