def _convert_to_py(self, annotation): if annotation: return Genotype._from_java(annotation) else: return annotation