setup.py & py3k

- Added a setup.py for friendly install.
- Py3k compat: 
  * xrange is deprecated and useless in py3.
  * print is now a function