Studying Algorithms using Python