python 3 changes and pandas change