def main(): current_time = ( datetime.datetime.now(TIME_ZONE).time().replace(second=0, microsecond=0) ) target_users = Student.at_time(current_time) for user in target_users: notify(user.group.group_code, user.student_id, user.extend) sleep(0.05) return current_time, target_users