Get column names and types from a table

def get_table_column_names(self, exclude=None):
        """Get column names and types from a table"""
        query = 'SELECT * FROM "{schema}"."{table}" limit 0'.format(table=self.table_name, schema=self.schema)
        columns = get_column_names(self.cc, query).keys()

        if exclude and isinstance(exclude, list):
            columns = list(set(columns) - set(exclude))

        return columns