def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def _pad(self, s):
        return s + (self.bs - len(s) % self.bs) * chr(self.bs - len(s) % self.bs)