Fix python2/3 for the nonce