Fix import error in Python 2