Python script support for ESM