Lambda Function Using Python To Automate