Ah! I came in late to recommend SML or another purely functional language.
If you want to learn "CS" programming you will have to learn imperative/procedural, functional, declarative (i.e. SQL and Prolog) and a Lisp.
Both Java and Python are valid to teach imperative/procedural. While I have a strong dislike of Python (and an irrational hate for saying it's the *ONE* language for learning programming), I have to admit it's got some advantages wrt. Java:
- REPL (Eclipse's interactive code execution is not suitable for learning... and I haven't played with BlueJ for more than 10 minutes)
- Doesn't force OO down your throat, simpler main()
- Transparent/fast compilation and lightweight
but it also has disadvantages- at least to my tastes: dynamic typing, duck typing, whitespace as indentation. Java has few advantages in comparison- the byzantine API has its charm, concurrency is pretty interesting, it has non-wonky immutability and you have Hadoop... plus, as a general CS tool it might be interesting to have a performant language (you might want to do some number crunching).
Anyway, neither language is comparable to say, SML for teaching functional. They are there to teach you about the prevalent imperative world.
If I were to teach imperative, I'd also take a look at Eiffel, Ada and Smalltalk, which might be better in some areas than Java and Python.