New tests and some bugfixes
Python3 fix
Remove unimplemented io methods
Merge pull request #37 from ChrisBeaumont/tests

New tests and some bugfixes