Has anyone written a module or function for Python which provides the functionality of the Unix file(1) command? That is, it attempts to guess the type of a file by looking for distinctive patterns in the contents of the file, usually driven by a table of "magic" numbers and strings. Bill