Fix mime processing

Hi,

Not tested existing code but assumed it was from other python magic lib.