def handler():
            nonlocal called
            called += 1
            raise ValueError("yeah sync")
def _pad(self, s):
        return s + (self.bs - len(s) % self.bs) * chr(self.bs - len(s) % self.bs)