py3 compat for threading queue import