Python script examples: instrument model