+1 avoid using print, please use the logger. Extra debug strings are always good.