Automatically updated date start and end range

Hey, basically the same as the question, how do I automatically update the date start and end range? Is this possible? I am using python. Maybe automatically update the date by using the date module? Thanks!