merge driver in python