Python3 syntax (useless for now as mechanize is python2 only)