Powerful Lambda Function In Python