merge d71476b9a55d from tip, use start_new_session instead of os.setsid.
merge d71476b9a55d from tip, use start_new_session instead of os.setsid.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator