Add (implicit) test for reading from file-like objects.
When guessing, remove the dependency on the 'file' class and
just use .read() instead. Didn't work on Python 3 anyway.