Worked more on algorithms in python