Used name tuple for the xp settings

Also correct the f*** random.seed pb.