Made last commit python3 compatible.