update gen_javadoc strings to python3 syntax fixed #3768