Basic Python 3 support

Not sure how interested  in supporting Python 3 you are, but...

Thanks,

James