Add patch to improve python compat.