different algorithms in python.