Create Lambda Function Python