threading deployment pull request

Threading deployment pull request.PEP8 and pyflakes tested