fix partial dependence for python 3

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