Update AddRule.py

Added error handler around urllib2.urlopen