port gridsearch test to Python3.3