Changing assert_raises tests to not use IOError as it has been reworked in py 3.3