Successfully use APOP from Python to Dovecot

Also, stabilize the output of folder_info.py using sorted() so that the
order cannot change from one run to the next.