More explicit compatbility between Python 2 and Python 3 because Python 2.7 also has the io library.