This MR solves two bugs in our in time threshold scan which are related to change from python 2 to python 3.