python-magic replaced with mimetypes