Reduce Python Lambda Function Multiline Autocad