Metric learning algorithms in Python