FIX: pep8 and Py3 support in sklearn.neighbors.dist_metrics