Fixed Python 3 io import