Use versioned Python macros for Python2 and Python3

Signed-off-by: Dan Scott <dan@coffeecode.net>