Updated py AL to accept groups as a list instead of string