Python Thread Target Class Action