Handling Categorical Data In Python