Hi Dieter,
the reference sequence is not part of a bam/sam file. Hence, it can
not
be got at via a Samfile object.
You will need the sequence and get the base via the position - you can
use pysam.Fastafile to access faidx indexed fasta
files, for example.
Best wishes,
Andreas