fix probe_cursor_pos for python3
use floor_div now that we import division