Fix missing import for python 2

reference issue #1