setattr using class for configuration to better support customization in subclasses issuing pop-up in the gui to prompt for an account name after or before the main window appears and so on the separate subdirectory scheme used here was chosen to minimize impacts on existing code in generalto avoid changes to the existing mailconfig module specifically (which works fine for the single account case)to avoid requiring extra user input of any kind in single account casesand to allow for the fact that an "import module as module statement doesn' prevent "module from being imported directly later this last point is more fraught with peril than you might expect--importing customized version of module is not merely matter of using the "asrenaming extensionimport as print( attrcustom importload as alternative prints attr in py import print( attrlater importsloads py anyhowprints attr in py in other wordsthis is quick-and-dirty solution that originally wrote for testing purposesand it seems prime candidate for improvement--along with the other ideas in the next section' wrap up ideas for improvement although use the version of pymailgui as is on regular basis for both personal and business communicationsthere is always room for improvement to softwareand this system is no exception if you wish to experiment with its codehere are few suggested projects to close out this column sorts and list layout mail list windows could be sorted by columns on demand this may require more sophisticated list window structure which presents columns more distinctly the current display of mail lists seems like the most obvious candidate for cosmetic upgrade in generaland any column sorting solution would likely address this as well tkinter extensions such as the tix hlist widget may show promise hereand the third-party tkintertreectrl supports multicolumn sortable listboxestoobut is available only for python todayconsult the web and other resources for pointers and details mail save file (and sent filesize the implementation of save-mail files limits their size by loading them into memory all at oncea dbm keyed-access implementation may work around this constraint see the list windows module comments for ideas this also applies to sent-mail the pymailgui client