def random_mid(word):
    last = last_char(word)
    mid = [char for char in word[1:last]]
    np.random.shuffle(mid)
    return ((word[0] + ''.join(mid)) + word[last:])
def random_mid(word):
    last = last_char(word)
    mid = [char for char in word[1:last]]
    np.random.shuffle(mid)
    return ((word[0] + .join(mid)) + word[last:])