io and test.py modified, currently not working