add python-magic as a req
use mime type instead of relying on extension