testwhat has override_solution(), where you can override solution code and solution environment variables. pythonwhat only allows you to override solution code (with override()). In addition, this is not parsed with asttokens, which can lead to crazy things, and it's not documented (no reference docs, no examples). I will only address this if this becomes urgent after office hours.