Changes for Python 2.6 compatibility
Fixes balloob/pychromecast#29