ENH: io handles edge cases better
STY: fix flake8
ENH: increase coverage
MAINT: python3 does not have StandardError
Merge pull request #648 from ebolyen/master

IO edge cases