Yes the dropout layer will always make everything zero as it is set to 1.
To randomly drop off the layer, generate a random number between 0 and 1 and if the number is greater than the threshold drop it
prob  = random.uniform(0, 1)
if prob > threshold:
    b = dropout(b)

Then you can concatenate the two vectors.