add docstring for threading module