try reading only for file objects
Merge pull request #380 from dmathieu/read_non_string

Don't try reading non-file objects