In mime v2 or later, "mime.lookup" is deprecated and rename to "mime.getType". Please fix this issue.