Maybe reconsider this as a list comprehension to avoid the append call?