d.hookSeg() will not finish and running python script window wont go away until pressing cancel. IDA Pro 7.7