I've tried running the script and viewing the results in terminal as well as writing them to a file. In both cases, the output appears cut-off (though at different points in the expected output, depending on if I'm looking at the printed output vs writing stdout to a file: https://gist.github.com/easherma/b4f878f9ee67f9036f687890f16444f1