I think uuid.uuid4() might provide the desired effect.