Change the magic lib from magic to python-magic