Fixed import-related error with old versions of Python