Python 3

Adds python 3 support.