code: def get_cipher(key=None, keyfile=None):
      
      des_func = import_attr(settings.SECRETKEY.CIPHER_CLS)
      kwargs = settings.SECRETKEY.CIPHER_ARGS
      
      if not key:
          key = functions.get_cipher_key(keyfile)
      cipher = des_func(key, **kwargs)
      return cipher
docs: Get cipher object, and then you can invoke:
          des = get_cipher()
          d = des.encrpy('Hello')
          print des.descrpy(d)