If one has run
from numpy import *
then the built-in all, and several other functions, are shadowed by numpy fun
all
numpy
You can correct these en masse by re-importing the builtins:
In [1]: all Out[1]: In [2]: from numpy import * In [3]: all Out[3]: In [4]: from __builtin__ import * In [5]: all Out[5]: