Python 3-compatible imports of urlparse, parse_qs
hotp: in Python 3, the secret will by a bytes instance and we can just skip calling ord
reduce is functools.reduce in Python 3
Python 3 str/bytes fixes
an attempt to fix ocra for Python 3 str/bytes issues but it's not working