Python 3 compatibility

Hi, included are changes to enable python3 support.

Tested on 2.7, 3.2 & 3.3

I also bumped the version to 0.2.3