Java Scanner Next Method In Python