Update DeleteRule.py

Added error handler around urllib2.urlopen(req).