How can I check if a file is a microsoft office file in python? I know I can check for the mimetype, but many office types are detected as application/zip.