Algorithms from book "Introduction to Computer Science / matfyzpress" rewrites to Python