Change Python 3 signature, without duplicating