Try to port to python3