If we weight sloc thrice as heavy as file count, Java is 5 times worse than Python. With the same weights, my previous guess would have landed at 3.5 times worse than Python. It's in the same ballpark. Suffice to say that Java sucks more than Python.
For small hacks that is. I wouldn't want to build something big in Python. On the other hand, I've never attempted building something big in Go, Haskell or Elixir. I guess at least one of those is a better option than Java for building something huge.
PS. Also worth mentioning is that Java's Thymeleaf is shitty alternative to Python's Jinja 2.