Add python 2.4 support

with open(maillog) as log: replate with standard open due to python 2.4
issue.