pretty_date python 2.6 compatibility & bugfix