new_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  import json
  
  from django.db import migrations, models
  from openedx.core.djangoapps.site_configuration.models import SiteConfiguration
  
  
  def add_hide_linked_accounts_tab_to_sass_vars(apps, schema_editor):
      #
      sites = SiteConfiguration.objects.all()
      for site in sites:
          exists = False
          for key, val in site.sass_variables:
              if key == '$hide-linked-accounts-tab':
                  exists = True
                  break
  
          if not exists:
              site.sass_variables.append(["$hide-linked-accounts-tab", ["false", "false"]])
  
          site.save()
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('appsembler_sites', '0001_initial'),
      ]
  
      operations = [
          migrations.RunPython(add_hide_linked_accounts_tab_to_sass_vars),
      ]
  
subject: add migration script to generate default sass var