Bugfix for Pageant support on 64-bit Python

Please merge this changeset to fix #736955.