More important than popularity measure itself is WHERE the languages are popular. Python is popular in startup ecosystems and professional developers whereas Java only in academic circles and some android developers (who are also gradually switching to Kotlin). So, in terms of "popularity where it matters", Python is in much better position than Java.