[MRG]Deprecated

This replace use of the old NumPy c api by the current numpy c api while keeping the support for old NumPy version.