Replaced a lot of unsafe/fixed code with 'out' attribute.
Replaced a lot of unsafe/fixed code with 'out' attribute.

numpy/numpy-refactor,numpy/numpy-refactor,numpy/numpy-refactor,numpy/numpy-refactor,numpy/numpy-refactor