fix imports for py3k