feat: Update AWS Lambda functions runtime to Python 3.12, set their AWS CloudWatch Log Groups retention period to 14 days, make IAM policy actions for AWS CloudWatch more restrictive and refactor the code.
feat: Update Python scripts to make them compatible with Python 3.12, refactor them and fix linting errors in them.
Changes: