If we were to do this comparison in early 2000 then yes Java would be more famous as it is ranked above python having 45% developers and python having 39%. But this gap is closing very fast and now it is safe to say that both are famous. So whatever you choose to learn would be equally competitive and popular.