add conditional check for \n in username returned by [Popen Object].communicate()
added TODO reminding me to profile this script & improve its performance
turn whoami into function get_user_name & save to variable
turn with statement into function read_history_file
initialize hist_text list inside function & return it at the end of that function
turn collection creation operations into function
define function to encapsulate sort collection operations