Density based clustering algorithm implementation using Python