code: def appendSpacePadding(str, blocksize=AES_blocksize):
    'Pad with spaces'
    pad_len = paddingLength(len(str), blocksize)
        
    padding = '\0'*pad_len
    
    return str + paddinf appendSpacePadding(str, blocksize=AES_blocksize):
    'Pad with spaces'
    pad_len = paddingLength(len(str), blocksize)
        
    padding = '\0'*pad_len
    
    return str + padding
docs: Pad with spaces