Do not get terminal dimensions when we're piping to someone
Convert to python 3