What is the use of the "next" method in Python?