Method next for python3