Restore directory after Python tests.