python-magic
PIL