Use len(MIMETYPES) instead of the magic number 100