test-restore-map-owner: accommodate python 3 and test there