Create Gray Code (pyemma)