Return x with the sign of y. This function has been overriden from math.copysign to work element-wise on iterables