Update endpoints_v2.py

python 3.4.2 compliance change