Py3

add simple support for py3.