code: def translate(script):
      '''translate zipline script into pylivetrader script.
      '''
      tree = ast.parse(script)
  
      ZiplineImportVisitor().visit(tree)
  
      return astor.to_source(treef translate(script):
      '''translate zipline script into pylivetrader script.
      '''
      tree = ast.parse(script)
  
      ZiplineImportVisitor().visit(tree)
  
      return astor.to_source(tree)
docs: translate zipline script into pylivetrader script.