More robust mime_type guessing using python-magic