what does import io do in python?
The io module provides the Python interfaces to stream handling. Under Python 2. x, this is proposed as an alternative to the built-in file object, but in Python 3. x it is the default interface to access files and streams.