Lambda Function Using Python For Finance