def tcmf_2(self, start): # runs in thread self.in_times.append(time.time() - start) reactor.callFromThread(self.tcmf_3, time.time())