A python wrapper for libmagic