A relative date calculator in Python