Added python 3 compatibility

* Doesn't support bytes