Angular Sum Array Python Methods Strings