finally get mouse events working properly with python 3