python3ized a bit more