first blind attempt to port to python3