A couple Python 3 fixes

These are a couple of small obvious changes necessary for Python3 support.