Python 3 prep

Making this thing work with Python 3!