Fixed python 3 issue with python magic used in GLCM.