In python mode, when I forward-word. The cursor jumps from H to d (Hello_World). But in another mode(shell-mode or
forward-word
H
d
shell-mode
Things got a little simpler since Emacs 24.4. There's now a M-x superword-mode that has the desired effect.
M-x superword-mode