Algorithms with python