def pkcs7_pad(data):
    padsize = (16 - (len(data) % 16))
    return (data + (bytes([padsize]) * padsize))
def pkcs7_pad(data):
    padsize = (16 - (len(data) % 16))
    return (data + (bytes([padsize]) * padsize))