Update xbmctools.py

Changed handle_wait