import bpy scene = bpy.context.scene scene.unit_settings.system = 'IMPERIAL' scene.unit_settings.scale_length = 1609.344