Python script modified to render TSV results properly