fixing verification for python3, strings stuff
fixing encoding for ballot hash verification for python3