Remove old comment.
Add get_password_names_grouped() to library and test.
Don't perform import time check_dirs()

Instead check as and when we call library functions that assume the
existence of the passout directory.
Sort password groups.
Tidy and PEP8.