boolean and type checking in python vs numpy boolean and type checking in python vs numpy numpy numpy