Memory-limited two pass clustering with scipy.cluster