Simple Python web application based on Flask to do IMAP/POP authentication for nginx proxies