def _pad_message(text):
 block_size = AES.block_size
 padding_size = ((block_size - (len(text) % block_size)) or block_size)
 padding = (chr(padding_size) * padding_size)
 return (text + padding)

def _pad_message ( text ) : block_size = AES . block_size padding_size = ( ( block_size - ( len ( text ) % block_size ) ) or block_size ) padding = ( chr ( padding_size ) * padding_size ) return ( text + padding )
return text padded out to a multiple of block_size bytes .