debug the new python script modify the condition for generating the time range for extraction of data to make it real-time mirror data (validation for last read date time and store max read date-time).