Move id_generators to backends module

The day we have several random generators and several kind of generators, we can have as many as many python modules as we want...