Tested using cut instead of awk
Rewrote everything in Python