According to the Machoc description, each function should be represented by a 32-bit value. The current code is not including any NULL bytes when converting the number to its hex representation.
It should be a simple fix: '{:08x}'.format(mmh3.hash(machoke) & 0xFFFFFFFF)