updated script. script now produces TSV format, values that had been converted to floats by pandas are now integers. Script also cleaned up, with comments refined and unused code removed.