Add hy._compat module.

There was a couple of duplicate imports and type checkings
in the codebase. So I added a new module to unify all Python
2 & 3 related codes.

Also, this is a somewhat common pattern in Python. See Jinja2
for example:

https://github.com/mitsuhiko/jinja2/blob/master/jinja2/_compat.py