Fix paslepy:text() for Python 3