Use assertIsInstance() instead of assertTrue(isinstance()).
Compare results with basestring on Python 2 (Fixes #27).
Fix PEP 8 issues.
Use unittest2 for Python < 2.7.
Replace distutils.core by setuptools and add unittest2 as test dependency for Python < 2.7.
Some PEP 8 fixes.
Merge pull request #35 from bdrung/master

Improve tests