make it python 2.4 compatible at the cost of not calculating tweet length