test for io import time

the print statement was removed and replaced with an 'import io' and
some other useless lines have been removed