[Python-ideas] checking for identity before comparing built-in objects