Here are the code migration instructions when upgrading from expyfun
version 2.0.0:

The biggest difference is the required use of identify_trial, start_stimulus, and trial_ok (in that order) in all scripts using ExperimentController. See the example scripts and documentation for further guidance.