Python idiom to return first item or None Python idiom to return first item or None python python