fixing the random seed in the python bindings