python: Use generated WERROR definitions