Thanks to visit codestin.com Credit goes to packages.gentoo.org
Basic functions for handling mime-types in python
https://github.com/falconry/python-mimeparse/