<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_transition(self):
 """Is this variant and pyrimidine to pyrimidine change or purine to purine change"""

        return self.is_snv and is_purine(self.ref) == is_purine(self.alt)