changes for compatibility with Python3