Updated Python workflow framework and fixed a bug in the date difference calculation.
Further date calculation bug fixes