[PATCH] newt: Update to work with python3