program in pyhton for blog entry