Add list of strings support to from_file

Lots of unit test code fakes file-like objects using lists of strings, so it's a good idea to have DistanceMatrix.from_file support either file-like objects or lists of strings.