In [2]: (datetime.date(2009,2,3) - datetime.date(2009,1,1)).days + 1
Out[2]: 34