Angular Sum Array Python Methods With Parameters