Additional fixes for Python3 support to address issue #89