Add Python 2 ifdef around label that python 3 doesn't use

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>