mimetools is replaced by email in Python 3