utils.py:  Modified memoize() to make it directly Python3 compatible.
terminal.py:  Added a max_scrollback attribute to Terminal that can be set after it is instantiated.