Update for Python3 compatibility.

Quick update to make Wordplay compatible with Python 3 as well as 2.7