Deploy Lambda Function With If Conditional Python