backwards import compat. for python 2