Update datacursor.py

Python 3 support