Fix isympy for use with Python 3