Fix compilation of python tests.