Python implementation for some data mining algorithms