Initial python 3 port

Port pyship to python 3 using python's 2to3 tool