Line 28 in retrieve.py should be updated to:
url = 'http://dd.schedulesdirect.org/schedulesdirect/tvlistings/xtvdService'
Near line 70:
authinfo = urllib2.HTTPDigestAuthHandler()
Should be:
authinfo = urllib2.HTTPBasicAuthHandler()
Once these changes are made, then the example works.