def am_i_active(self):
    """ This method will access the right *class* variable by
        looking at its own class type first.
    """
if self.__class__.active:
    print('Yes, sir!')
else:
    print('Nope.')
Static variable inheritance in Python