Ah Ha!

Hayden Reeves

So what I found is that the new version of Python requires you write

 except Exception as e:
  

Instead of

 except Exception, e:
 

I don't know why. When I did that though, now the second line is saying there is a syntax error.

  print "Error reading id %s, exception: %s" % (kid, e)

I guess I don't know as much about coding as I thought I did...