Python 3 support added 

I have added the Python 3 support and and fixed some problems related to the utf-8 encoding into the tests