No reason to call this code, and no reason this must be list of str.  Just list will do.  This is now a generic utility function.