Create Python Lambda Function