code: def _bed_to_bed6(orig_file, out_dir):
      
      bed6_file = os.path.join(out_dir, "%s-bed6%s" % os.path.splitext(os.path.basename(orig_file)))
      if not utils.file_exists(bed6_file):
          with open(bed6_file, "w") as out_handle:
              for i, region in enumerate(list(x) for x in pybedtools.BedTool(orig_file)):
                  region = [x for x in list(region) if x]
                  fillers = [str(i), "1.0", "+"]
                  full = region + fillers[:6 - len(region)]
                  out_handle.write("\t".join(full) + "\n")
      return bed6_file
docs: Convert bed to required bed6 inputs.