from utils import website_handler URLS = [ {"url": "http://notify.shore.co.il/", "codes": [301, 302]}, {"url": "https://notify.shore.co.il/ping"}, ] handler = website_handler(URLS) if __name__ == "__main__": handler("event", "context")