Framework for creating python scripts that work like AWK