Use Filter In Array Of Strings In Python