views: Fix exception to be compatible with python3
python3: Fix unicode and smart_unicode
python3: Fix type check
Fix relative import
Merge pull request #2 from dzen/master

Python 3 support