import bpy
bpy.context.cloth.settings.quality = 15
bpy.context.cloth.settings.mass = 0.4
bpy.context.cloth.settings.structural_stiffness = 80
bpy.context.cloth.settings.bending_stiffness = 150
bpy.context.cloth.settings.spring_damping = 25
bpy.context.cloth.settings.air_damping = 1