python-magic as optional dependency