[python/applist] optimize app enumeration