Why Is Java Program Skipping String Input In Python 3