Python flavoured awk-like tool