Fixed the select.poll concurrent invocation issue due the change in Python according to issue8865