Reduce Python Lambda Function Definition Science