Fix imports for Python 2