Thanks to visit codestin.com Credit goes to packages.gentoo.org
Access the libmagic file type identification library
https://github.com/ahupp/python-magic/