fix partial dependence for python 3

I was getting errors with partial dependence in python 3. These issues were flagged in by the `@if_matplotlib` tests in `test_partial_dependence.py`. These tests no run fine under python 3 now, well 3.3.5 at least I guess.