Fix python unit test.