code: def decompile_pyc(bin_pyc, output=sys.stdout):
      '''
      decompile apython pyc or pyo binary file.
      
      :param bin_pyc: input file objects
      :param output: output file objects
      '''
      
      from turicreate.meta.asttools import python_source
      
      bin = bin_pyc.read()
      
      code = marshal.loads(bin[8:])
      
      mod_ast = make_module(code)
      
      python_source(mod_ast, file=outputf decompile_pyc(bin_pyc, output=sys.stdout):
      '''
      decompile apython pyc or pyo binary file.
      
      :param bin_pyc: input file objects
      :param output: output file objects
      '''
      
      from turicreate.meta.asttools import python_source
      
      bin = bin_pyc.read()
      
      code = marshal.loads(bin[8:])
      
      mod_ast = make_module(code)
      
      python_source(mod_ast, file=output)
docs: decompile apython pyc or pyo binary file.
      
      :param bin_pyc: input file objects
      :param output: output file objects