Add three people filter function for flask main file.