Tidy snippets: Reorder variables to e.g. list legacy before modern, and cdbs_curpkg-resolved later.
Tidy snippets: wrap+strip wide lines.
Introduce new expansion variables cdbs_uc cdbs_lc.
Fix python-distutils.mk and python-sugar.mk to use unversioned runtime for default flavor (see bug#377964).
Modernize python-distutils.mk installdir handling (since supported even in oldstable now): Use --install-layout=deb (and drop --prefix=/usr) by default, and use --install-lib option (not --install-purelib/--install-platlib, and only when DEB_PYTHON_DISTUTILS_INSTALLDIR_SKEL is set).  Deprecate cdbs_expand_python_distutils_installdir, and have it provide .../dist-packages dir (not .../site-packages) by default to try cope with packages relying on it for non-skel use. Closes: bug#565973. Thanks to Matthias Klose and Piotr Ożarowski.
Fix error message to talk about multiple python implementations (not packaging systems).
Tidy python-vars.mk: Add/improve comments.
Introduce new variables DEB_CONFIGURE_SCRIPT_ENV_BUILDFLAGS cdbs_autotools_configure_env, and deprecate DEB_CONFIGURE_SCRIPT_ENV: supports early and more granular override.
Rename cdbs_python_pysupport → cdbs_pythonsystem_pysupport (and simply drop the former: unused according to codesearch.debian.net).
Rename cdbs_python_pycentral → cdbs_pythonsystem_pycentral (and simply drop the former: unused according to codesearch.debian.net).
Rename cdbs_python2 → cdbs_pythonsystem_python2 (and simply drop the former: unused according to codesearch.debian.net).
Rename cdbs_python3 → cdbs_pythonsystem_python3 (and simply drop the former: unused according to codesearch.debian.net).
Refactor python snippets: Expand implementations from list.
Refactor python snippets: Rename per-flavor variables python_*_packages → _python_*_packages - i.e. internalize them.
Drop deprecated (and unused according to codesearch.debian.net) build target python-install-py python-install-% python-clean-%, and mention bug#759709 for python-build-stamp-%.
Refactor python snippets: Handle flavors (not versions). Drop obsolete (and unused according to codesearch.debian.net) variable cdbs_pythonsystem_python3. Deprecate variables cdbs_python_stem cdbs_curpythonstem cdbs_python_current_binary cdbs_python3_current_binary cdbs_python_current_version cdbs_python3_current_version cdbs_python_supported_versions cdbs_python3_supported_versions cdbs_python_first_supported_version cdbs_python3_first_supported_version cdbs_python_nondefault_version cdbs_python3_nondefault_version cdbs_python_primary_version cdbs_python3_primary_version cdbs_python_build_versions cdbs_curpythonbuildversions.
Rename cdbs_python2_builddeps → cdbs_python_builddeps_python2, and deprecate the former.
Rename cdbs_python3_builddeps → cdbs_python_builddeps_python3, and deprecate the former.
Refactor python snippets: Check actual need for build-dependencies in cdbs_python_builddeps (not before).
Refactor python snippets: Expand packaging systems from list.