modify generate trial so it is compatible with import condition psychopy function
 now adaptated to new triallist format