P3k

First draft for the python 3 port.

Just for reference: [Porting python 2 to 3](http://docs.python.org/dev/howto/pyporting.html)