mersenne twister algorithm python