Fixed the Cursor on Python 3