simulating and graphing a Kac ring in python