Does this work?  An HSS_IP of False is not "in ["", "0.0.0.0"]", so won't HSS function be considered to be enabled?  Have you run the UT after these changes?