adding pygrep function