Get a list of namespaces

def get_namespaces(self):
        """Get a list of namespaces"""
        cursor = self.cursor
        cursor.execute('SELECT DISTINCT namespace FROM gauged_statistics')
        return [namespace for namespace, in cursor]