Replace awk scripts with python ones.

Apparently mawk doesn't support FPAT, so it couldn't be used for parsing csv so easily.I

Implemented parsers using Python instead.