Infer file type and MIME type of any file/buffer

WWW: https://github.com/h2non/filetype.py
