Python program running at regular time interval tutorial using time and datetime module