Make more python3 like

Some first steps to make it more Python 3 like.