FF: Fix NameError if using TrialHandler with file 

A NameError was raised because local function was called with module.

Found by pylint.