XBMC fix for python 3.2
Better error messages