Timeout on a function call Timeout on a function call python python