Python Check If An Object Is A List