Moved execution of filter_lines to pygrep