update gen_javadoc prints to python3 syntax fixed #3768
Merge pull request #3301 from MC-Escherichia:fix_gen_javadoc_py_prints