code: def get_tablenames(cur):
      
      cur.execute("SELECT name FROM sqlite_master WHERE type='table'")
      tablename_list_ = cur.fetchall()
      tablename_list = [str(tablename[0]) for tablename in tablename_list_ ]
      return tablename_list
docs: Conveinience: