for, say Python shell:
bound to M-p and next to M-n
in python-mode: (emerge python-mode)
also using:
M-x py-execute-buffer
and:
M-x python-shell
(in xxxxx/pickled_feet Python workshop with Julian Oliver)
also in Python help(type) where type is a variable on a certain type