Code For One Hot Encoding In Python