Building a list of monthly totals
<p>I have a list of objects representing widgets. Each widget object has a manufactured DateTime field that holds the date and time when the widget was made. All the widgets in the list were manufactured in a particular year.</p>

<p>I would like to get a list with the total widgets manufactured each month - e.g.: </p>

<pre><code>&gt;&gt;&gt; totals
[1, 5, 819, 187, 1, 5, 15, 9, 13, 77, 54, 22]
</code></pre>

<p>So in the above list there were 819 widgets made in March.</p>

<p>What's a pythonic way of doing this?</p>
