Make changes python 3 compatible.