Accept training data settings file as file object 

Make ``readTraining``, ``writeTraining``, ``writeSettings`` and the ``__init__`` method of ``StaticDedupe`` expect file objects instead of paths.