Now python3 compatible

I tested all of the examples in the readme. Should work on both python2 and 3 now.