Prosecutors sought a life sentence last month, describing Tetsuya Yamagami's act as an "extremely grave incident unprecedented in Japan's post-war history".