modify this python function into multithread
    def GetRightmostObj():
        results = []
        for i in range(len(objs)):
            box = pg.locateOnScreen(objs[i], confidence=0.6, region=(1208, 978, 1567, 1334))
            if box is None:
                continue
            else:
                return box
        # throw exception
        print(results)
        raise Exception("No object found")    