Japan PM dissolves parliament, elections on Oct. 31