utils: a function to check a pid is running
Py2.6 compatibilty: empty format with dates