python: support 'diet' mode
2 files changed