The psychometrics code looks a bit sketchy. Did a lot of it change on master or did we somehow neglect it? Anyway, module_state_key will be a UsageKey (actually Location)