old_contents: from django.contrib.contenttypes.models import ContentType
  from django.contrib.auth.models import Permission
  from bullet_train import BulletTrain
  from django.conf import settings
  
  
  def create_mc_permission(permission):
      ct, _ = ContentType.objects.get_or_create(
          app_label="mc",
          model=permission.content_type.model)
      new_perm, _ = Permission.objects.get_or_create(
          name=permission.name,
          content_type=ct,
          codename=permission.codename)
      for group in permission.group_set.all():
          group.permissions.add(new_perm)
      for user in permission.user_set.all():
          user.user_permissions.add(new_perm)
  
  
  def bullet_train_has_feature(feature_name):
      if settings.BULLET_TRAIN_API_KEY:
          bullet_tran_key = settings.BULLET_TRAIN_API_KEY.strip('"')
      else:
          bullet_tran_key = ''
      bt = BulletTrain(environment_id=bullet_tran_key)
      if bt:
          if bt.has_feature(feature_name):
              return bt.feature_enabled(feature_name)
      return False
  
new_contents: from bullet_train import BulletTrain
  from django.contrib.contenttypes.models import ContentType
  from django.contrib.auth.models import Permission
  from django.conf import settings
  
  
  def create_mc_permission(permission):
      ct, _ = ContentType.objects.get_or_create(
          app_label="mc",
          model=permission.content_type.model)
      new_perm, _ = Permission.objects.get_or_create(
          name=permission.name,
          content_type=ct,
          codename=permission.codename)
      for group in permission.group_set.all():
          group.permissions.add(new_perm)
      for user in permission.user_set.all():
          user.user_permissions.add(new_perm)
  
  
  def bullet_train_has_feature(feature_name):
      if settings.BULLET_TRAIN_API_KEY:
          bullet_tran_key = settings.BULLET_TRAIN_API_KEY.strip('"')
      else:
          bullet_tran_key = ''
      bt = BulletTrain(environment_id=bullet_tran_key)
      if bt:
          if bt.has_feature(feature_name):
              return bt.feature_enabled(feature_name)
      return False
  
subject: fix import order