I have this following code, that connects and checks every ten seconds for new emails but it doesn\'t work for some reason it doesn\'t refresh.
import imaplib