I can't really think how to test this properly. And I should apply the same patch to the python3 branch, unless that is generated somehow?