update gen_javadoc prints to python3 syntax fixed #3768