Change import to support Python 2.x and Python 3.x