I know this is an old post, but I ran across this after searching for the error: cleartext logins disabled.
I was able to get around this error by using IMAP4_SSL. The following code worked for me.
Code:
import imaplib, getpass
m = imaplib.IMAP4_SSL('connect.southwest.tn.edu')
m.login(getpass.getuser(), getpass.getpass()) Hope this helps someone else.