fix import error on some Python versions