make some of the snippets PY2 & PY3 compatible.