A backport of the get_terminal_size function from Python 3.3's shutil.

WWW: https://github.com/chrippa/backports.shutil_get_terminal_size
