Python 3 and STARTTLS support

Fixes quentinsf/IMAPdedup#5 (STARTTLS)
Fixes quentinsf/IMAPdedup#6 (Python 2 shebang)