This seems racy to me. Suppose this is used in different files. Then what? I'd get rid of the stuff outside of the class, and maybe put setDaemon inside __init__.