from operator import xor


def otp(m, k):
    """
    Encrypts m using key k as a one-time pad.
    This simple returns the xor of each corresponding message and key bit.
    """
    assert len(m) == len(k)
    return [xor(mm, kk) for mm, kk in zip(m, k)]