Fix hotp hex format for longs.

One of the hotp tests is currently failing, due to hex() returning a string ending in "L" whenever a long is passed to it. This fixes that.