[WIP]Deprecated

This replace use of the old NumPy c api by the current numpy c api.

Don't merge yet, it is not finished. I do this PR to test if it break with old NumPy.