Cpp Copy Array Python Methods Vs Functions