Import refine.
mimetypes has issue in python distribution. Need work around.