Python Lambda Function Multiple Representations