dymanic adjustment of time from top of main python script