CLN: fix py2to3 issues in categorical.py
Merge pull request #4990 from jreback/cat_fix

CLN: fix py2to3 issues in categorical.py