merge using python