code: def copy_magic_into_pyc(input_pyc, output_pyc,
                          src_version, dest_version):
      
      (version, timestamp, magic_int,
       co, is_pypy, source_size) = load_module(input_pyc)
      assert version == float(src_version), (
          "Need Python %s bytecode; got bytecode for version %s" %
          (src_version, version))
      magic_int = magic2int(magics[dest_version])
      write_bytecode_file(output_pyc, co, magic_int)
      print("Wrote %s" % output_pyc)
      return
docs: Bytecodes are the same except the magic number, so just change
      that