Fix __repr__ for core classes

__repr__ should return str not unicode
Merge pull request #417 from xavfernandez/fix_repr

Fix __repr__ for core classes