def dif(a, b):
    """ copy from http://stackoverflow.com/a/8545526 """
    return [i for i in range(len(a)) if a[i] != b[i]]
def dif ( a , b ) : return [ i for i in range ( len ( a ) ) if a [ i ] != b [ i ] ]
copy from http://stackoverflow.com/a/8545526