Python modules for nearest neighbours