Fixed buildof python tests.