Pymagic is a project mainly written in Python, it's free.
Quick and dirty proof of concept /etc/magic parser
404: Not Found