Create `cookiecutter.compat` to centralise Python 2/3 differences

Fixes #203