Stream Java Filter Example Python