- moved the import to a conditional python 3 import instead of a global
  one, since that seems to be the original intent. Addresses #1900