Pysam is a Python module for reading and manipulating SAM/BAM/VCF/BCF files. It's a lightweight wrapper of the htslib C-API, the same one that powers samtools, bcftools, and tabix.
conda install -c bioconda pysam
conda install -c bioconda/label/cf201901 pysam