Support for Python 3

Enable support for python 3. Fixes #23.
Add few tests and tox configuration for py27 and py34. Fixes #2.