sequential Python code for running a sequential analysis data and generating figures from Lepora et al R. Soc Interface 2012