pyhton scripts which finds out which state is executed in which clock cycle