Implemented awk in python3