'Check if our lease has expired, return seconds left.
Returns:
int: seconds left in the lease, 0 if not locked or lease is expired'

def CheckLease(self):

    if self.transaction:
        return self.transaction.CheckLease()
    return 0
