I've just tried simply adding python3_9 to PYTHON_COMPAT and it seems to be enough - flexmock builds and tests fine for this Python target. I can push the change to the tree myself if you're okay with it.
That'd be wonderful, thank you.