Callback of pysam fetch is rather buggy