Tunafish is a high-level genetic algorithm/programming-based function auto-tuning toolkit. It figures out what the best arguments to a function should be to optimize its output with respect to an arbitrary fitness function, like a distance measure.
PyRADE is a production-ready optimization library implementing Differential Evolution (DE), a powerful evolutionary algorithm for global optimization. Unlike traditional implementations that sacrifice code quality for performance, PyRADE proves you can have both through intelligent design.