from django.core.management.base import BaseCommand

from ...utils import transformer


class Command(BaseCommand):
    def handle(self, filename, *args, **kwargs):
        reader = transformer.convert_to_csv_reader(filename)
        labels = reader.next()
        print transformer.generate_key(labels)

@@ -262,13 +262,25 @@
     
-print
+transformer_key =
  tra
@@ -309,8 +309,168 @@
 labels)%0A
+%0A        if transformer_key in transformer.TRANSFORMERS.keys():%0A            print transformer_key + ' (exists)'%0A        else:%0A            print transformer_key%0A

Add message if transformer_hash already exists