Check If An Object Is A List Python