python skeleton of colgrep