measuredSpeedsList = []
for i in range(20):
    TestAbsoluteMove.Ssh(self)
measuredSpeedsList.append(self.Value)
time.sleep(0.25)
print('Measured movement speeds: ', measuredSpeedsList)
How to run two functions simultaneously