misc and pyth triples generator, messy