Python algorithms start