fixed import errors for py3