<Python CookBook3> for python3 translation