I've made a really trivial python wrapper for libmagic (the core of the file command). If anyone is interested it can be found at http://www.upl.cs.wisc.edu/~hupp/python-magic.tar.gz -Adam