FF: Fix NameError if using TrialHandler with file

A NameError was raised because local function was called with module.

Found by pylint.
DOC: Fix typos in docstrings and source comments
Merge pull request #629 from philippwiesemann/fix-data-nameerror

FF: Fix NameError if using TrialHandler with file