Copying mesh modifiers

Is there a way to deep copy all mesh modifiers from an object to another in python?
I can create copies of the modifiers using the code below but they will all have default settings.
I do not want to copy the mesh as i have a bmesh that will be assigned to the object.

ā€” Code:

ob = context.active_object

#create a new object with an empty mesh
mesh = bpy.data.meshes.new(ob.name)
newOb = bpy.data.objects.new(ob.name, mesh)

#Copy modifiers
for mod in ob.modifiers :
 newOb.modifiers.new(mod.name, mod.type)