Lets say I have class C which has attribute a.
C
a
What is the best way to get the sum of a from a list of C in Pytho